feat: adopt bug logo and scale onboarding header with screen width

This commit is contained in:
randogoth 2026-09-27 17:39:29 +03:00
parent c693e6fcb9
commit 52947e153d
3 changed files with 21 additions and 15 deletions

BIN
assets/images/bug_logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

View file

@ -192,21 +192,27 @@ class _OnboardingScreenState extends ConsumerState<OnboardingScreen> {
);
}
Widget _header(BuildContext context, String title) => Column(
Widget _header(BuildContext context, String title) => LayoutBuilder(
builder: (context, constraints) {
final logoWidth =
(constraints.maxWidth * 0.5).clamp(48.0, 200.0).toDouble();
return Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
const SizedBox(height: 60),
Row(
children: [
const Image(image: AssetImage("assets/images/logo-small.png")),
const SizedBox(width: 10),
Text("kirakira", style: Theme.of(context).textTheme.titleLarge),
],
SizedBox(
width: logoWidth,
child: const Image(
image: AssetImage("assets/images/bug_logo.png"),
fit: BoxFit.contain),
),
Text("kirakira",
style: Theme.of(context).textTheme.titleLarge),
const SizedBox(height: 40),
Text(title, style: Theme.of(context).textTheme.titleMedium),
],
);
},
);
Widget _welcome(BuildContext context) {
return Column(

View file

@ -34,8 +34,8 @@ flutter_launcher_icons:
android: "launcher_icon"
ios: false
min_sdk_android: 20
image_path: assets/images/icon.png
adaptive_icon_foreground: assets/images/icon.png
image_path: assets/images/bug_logo.png
adaptive_icon_foreground: assets/images/bug_logo.png
adaptive_icon_background: "#01111d"
flutter_native_splash:
@ -50,7 +50,7 @@ flutter_native_splash:
flutter:
uses-material-design: true
assets:
- assets/images/logo-small.png
- assets/images/bug_logo.png
- assets/images/empty.png
- assets/images/error.png
- assets/images/avatar.png