Stying tweaks
This commit is contained in:
parent
cf07f46930
commit
048dae8ce8
@ -156,7 +156,9 @@ class _Corners {
|
||||
|
||||
// TODO: add, @immutable when design is solidified
|
||||
class _Sizes {
|
||||
double get maxContentWidth => 800;
|
||||
double get maxContentWidth1 => 800;
|
||||
double get maxContentWidth2 => 600;
|
||||
double get maxContentWidth3 => 400;
|
||||
final Size minAppSize = Size(450, 600);
|
||||
}
|
||||
|
||||
|
@ -9,8 +9,8 @@ class WondersAppScaffold extends StatelessWidget with GetItMixin {
|
||||
Widget build(BuildContext context) {
|
||||
Animate.defaultDuration = $styles.times.fast;
|
||||
// Listen to the device size, and update AppStyle when it changes
|
||||
//$styles = AppStyle(appSize: null); //Size(context.widthPx, context.heightPx));
|
||||
$styles = AppStyle(appSize: Size(context.widthPx, context.heightPx));
|
||||
//$styles = AppStyle(appSize: null); //Size(context.widthPx, context.heightPx));
|
||||
return Stack(
|
||||
key: ValueKey($styles.scale),
|
||||
children: [
|
||||
|
@ -105,7 +105,7 @@ class _WonderEditorialScreenState extends State<WonderEditorialScreen> {
|
||||
/// Scrolling content - Includes an invisible gap at the top, and then scrolls over the illustration
|
||||
TopCenter(
|
||||
child: SizedBox(
|
||||
width: $styles.sizes.maxContentWidth,
|
||||
width: $styles.sizes.maxContentWidth1,
|
||||
child: CustomScrollView(
|
||||
primary: false,
|
||||
controller: _scroller,
|
||||
|
@ -30,7 +30,7 @@ class WonderEvents extends StatelessWidget {
|
||||
bottom: false,
|
||||
child: Center(
|
||||
child: SizedBox(
|
||||
width: $styles.sizes.maxContentWidth,
|
||||
width: $styles.sizes.maxContentWidth1,
|
||||
child: Stack(
|
||||
children: [
|
||||
/// Top content, sits underneath scrolling list
|
||||
|
Loading…
x
Reference in New Issue
Block a user