Rebrand to iiEasy: naming, logo, l10n, docs, assets
Some checks failed
L10n / l10n (push) Has been cancelled
Some checks failed
L10n / l10n (push) Has been cancelled
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import '../theme/theme_extensions.dart';
|
||||
import 'package:flutter/cupertino.dart';
|
||||
import 'package:flutter_svg/flutter_svg.dart';
|
||||
import 'dart:io' show Platform;
|
||||
import '../theme/color_tokens.dart';
|
||||
import '../theme/tweakcn_themes.dart';
|
||||
@@ -97,6 +98,21 @@ class BrandService {
|
||||
return iconWidget;
|
||||
}
|
||||
|
||||
/// iiEasy logo image (SVG): light theme uses logo.svg, dark uses logo_dark.svg.
|
||||
static Widget createLogoImage({
|
||||
required double size,
|
||||
BuildContext? context,
|
||||
}) {
|
||||
final isDark = context != null && Theme.of(context).brightness == Brightness.dark;
|
||||
final asset = isDark ? 'assets/icons/logo_dark.svg' : 'assets/icons/logo.svg';
|
||||
return SvgPicture.asset(
|
||||
asset,
|
||||
width: size,
|
||||
height: size,
|
||||
fit: BoxFit.contain,
|
||||
);
|
||||
}
|
||||
|
||||
/// Creates a branded avatar with the hub icon
|
||||
static Widget createBrandAvatar({
|
||||
double size = 40,
|
||||
|
||||
Reference in New Issue
Block a user