now with background images!

This commit is contained in:
2024-09-18 21:36:43 -04:00
parent 1a6ca9fa73
commit 0a9b0f7547
7 changed files with 71 additions and 41 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 244 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 243 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 245 KiB

View File

@@ -6,7 +6,15 @@ class About extends StatelessWidget {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return SafeZone( return Container(
decoration: const BoxDecoration(
image: DecorationImage(
image: AssetImage('assets/images/app-background2.jpg'),
fit: BoxFit.cover,
opacity: 0.2,
),
),
child: SafeZone(
child: DefaultTextStyle( child: DefaultTextStyle(
style: Theme.of(context).textTheme.bodyLarge!, style: Theme.of(context).textTheme.bodyLarge!,
child: const SingleChildScrollView( child: const SingleChildScrollView(
@@ -38,6 +46,7 @@ class About extends StatelessWidget {
), ),
), ),
), ),
),
); );
} }
} }

View File

@@ -38,7 +38,15 @@ class Links extends StatelessWidget {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return DefaultTextStyle( return Container(
decoration: const BoxDecoration(
image: DecorationImage(
image: AssetImage('assets/images/app-background3.jpg'),
fit: BoxFit.cover,
opacity: 0.4,
),
),
child: DefaultTextStyle(
style: Theme.of(context).textTheme.headlineSmall!, style: Theme.of(context).textTheme.headlineSmall!,
child: SafeZone( child: SafeZone(
child: Center( child: Center(
@@ -47,6 +55,7 @@ class Links extends StatelessWidget {
), ),
), ),
), ),
),
); );
} }
} }

View File

@@ -9,8 +9,17 @@ class Listen extends StatelessWidget {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return const Center( return Container(
decoration: const BoxDecoration(
image: DecorationImage(
image: AssetImage('assets/images/app-background.jpg'),
fit: BoxFit.cover,
opacity: 0.4,
),
),
child: const Center(
child: PlayControls(), child: PlayControls(),
),
); );
} }
} }

View File

@@ -16,7 +16,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
# In Windows, build-name is used as the major, minor, and patch parts # In Windows, build-name is used as the major, minor, and patch parts
# of the product and file versions while build-number is used as the build suffix. # of the product and file versions while build-number is used as the build suffix.
version: 1.0.0+1 version: 1.0.1
environment: environment:
sdk: ^3.5.1 sdk: ^3.5.1
@@ -66,9 +66,12 @@ flutter:
uses-material-design: true uses-material-design: true
# To add assets to your application, add an assets section, like this: # To add assets to your application, add an assets section, like this:
# assets: assets:
# - images/a_dot_burr.jpeg # - images/a_dot_burr.jpeg
# - images/a_dot_ham.jpeg # - images/a_dot_ham.jpeg
- assets/images/app-background.jpg
- assets/images/app-background2.jpg
- assets/images/app-background3.jpg
# An image asset can refer to one or more resolution-specific "variants", see # An image asset can refer to one or more resolution-specific "variants", see
# https://flutter.dev/to/resolution-aware-images # https://flutter.dev/to/resolution-aware-images