feat: adopt bug logo and scale onboarding header with screen width
This commit is contained in:
parent
c693e6fcb9
commit
52947e153d
3 changed files with 21 additions and 15 deletions
BIN
assets/images/bug_logo.png
Normal file
BIN
assets/images/bug_logo.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 31 KiB |
|
|
@ -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,
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
children: [
|
children: [
|
||||||
const SizedBox(height: 60),
|
SizedBox(
|
||||||
Row(
|
width: logoWidth,
|
||||||
children: [
|
child: const Image(
|
||||||
const Image(image: AssetImage("assets/images/logo-small.png")),
|
image: AssetImage("assets/images/bug_logo.png"),
|
||||||
const SizedBox(width: 10),
|
fit: BoxFit.contain),
|
||||||
Text("kirakira", style: Theme.of(context).textTheme.titleLarge),
|
|
||||||
],
|
|
||||||
),
|
),
|
||||||
|
Text("kirakira",
|
||||||
|
style: Theme.of(context).textTheme.titleLarge),
|
||||||
const SizedBox(height: 40),
|
const SizedBox(height: 40),
|
||||||
Text(title, style: Theme.of(context).textTheme.titleMedium),
|
Text(title, style: Theme.of(context).textTheme.titleMedium),
|
||||||
],
|
],
|
||||||
);
|
);
|
||||||
|
},
|
||||||
|
);
|
||||||
|
|
||||||
Widget _welcome(BuildContext context) {
|
Widget _welcome(BuildContext context) {
|
||||||
return Column(
|
return Column(
|
||||||
|
|
|
||||||
|
|
@ -34,8 +34,8 @@ flutter_launcher_icons:
|
||||||
android: "launcher_icon"
|
android: "launcher_icon"
|
||||||
ios: false
|
ios: false
|
||||||
min_sdk_android: 20
|
min_sdk_android: 20
|
||||||
image_path: assets/images/icon.png
|
image_path: assets/images/bug_logo.png
|
||||||
adaptive_icon_foreground: assets/images/icon.png
|
adaptive_icon_foreground: assets/images/bug_logo.png
|
||||||
adaptive_icon_background: "#01111d"
|
adaptive_icon_background: "#01111d"
|
||||||
|
|
||||||
flutter_native_splash:
|
flutter_native_splash:
|
||||||
|
|
@ -50,7 +50,7 @@ flutter_native_splash:
|
||||||
flutter:
|
flutter:
|
||||||
uses-material-design: true
|
uses-material-design: true
|
||||||
assets:
|
assets:
|
||||||
- assets/images/logo-small.png
|
- assets/images/bug_logo.png
|
||||||
- assets/images/empty.png
|
- assets/images/empty.png
|
||||||
- assets/images/error.png
|
- assets/images/error.png
|
||||||
- assets/images/avatar.png
|
- assets/images/avatar.png
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue