🚀 Launch 2.0.0+6
This commit is contained in:
parent
1af90cd9e7
commit
e70041fefa
@ -82,22 +82,24 @@ class AppBackground extends StatelessWidget {
|
|||||||
builder: (context, snapshot) {
|
builder: (context, snapshot) {
|
||||||
if (isRoot ||
|
if (isRoot ||
|
||||||
ResponsiveBreakpoints.of(context).smallerOrEqualTo(MOBILE)) {
|
ResponsiveBreakpoints.of(context).smallerOrEqualTo(MOBILE)) {
|
||||||
if (snapshot.hasData) {
|
if (snapshot.hasData && isRoot) {
|
||||||
final path = '${snapshot.data!.path}/app_background_image';
|
final path = '${snapshot.data!.path}/app_background_image';
|
||||||
final file = File(path);
|
final file = File(path);
|
||||||
if (file.existsSync()) {
|
if (file.existsSync()) {
|
||||||
return _buildWithBackgroundImage(context, file, child);
|
return _buildWithBackgroundImage(context, file, child);
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
return Material(
|
||||||
|
color: Theme.of(context).colorScheme.surface,
|
||||||
|
child: child,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
final backgroundColor =
|
|
||||||
ResponsiveBreakpoints.of(context).largerThan(MOBILE)
|
|
||||||
? Colors.transparent
|
|
||||||
: Theme.of(context).colorScheme.surface;
|
|
||||||
|
|
||||||
return Material(
|
return Material(
|
||||||
color: backgroundColor,
|
color: isRoot
|
||||||
|
? Theme.of(context).colorScheme.surface
|
||||||
|
: Colors.transparent,
|
||||||
child: child,
|
child: child,
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
@ -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: 2.0.0+5
|
version: 2.0.0+6
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
sdk: ^3.5.4
|
sdk: ^3.5.4
|
||||||
|
Loading…
Reference in New Issue
Block a user