diff --git a/lib/main.dart b/lib/main.dart index 02bc66c..119d069 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -111,8 +111,7 @@ class _MyHomePageState extends State { appBar: AppBar( title: Consumer( builder: (context, globalState, child) { - // return Text(globalState.currentTitle); - return Text(MediaQuery.of(context).size.width.toString()); + return Text(globalState.currentTitle); }, ), actions: [ diff --git a/lib/utilities/layout_presets.dart b/lib/utilities/layout_presets.dart index 914b02a..ba39f4f 100644 --- a/lib/utilities/layout_presets.dart +++ b/lib/utilities/layout_presets.dart @@ -7,7 +7,7 @@ Map presetUS = { towerTitleStyle: titleStyle.copyWith(fontSize: 12.0), towerSubtitleStyle: subtitleStyle.copyWith(fontSize: 12.0), towerSubtitleRows: 2, - towerImageWidth: 50, + towerImageWidth: 50.0, // heroes heroCrossCount: 1, heroAspectRatio: 3.5, @@ -36,7 +36,7 @@ Map presetXS = { towerTitleStyle: titleStyle.copyWith(fontSize: 15.0), towerSubtitleStyle: subtitleStyle.copyWith(fontSize: 13.0), towerSubtitleRows: 2, - towerImageWidth: 55, + towerImageWidth: 55.0, // heroes heroCrossCount: 1, @@ -66,7 +66,7 @@ Map presetSM = { towerTitleStyle: titleStyle.copyWith(fontSize: 17.0), towerSubtitleStyle: subtitleStyle.copyWith(fontSize: 14.0), towerSubtitleRows: 2, - towerImageWidth: 65, + towerImageWidth: 65.0, // heroes heroCrossCount: 1, @@ -96,7 +96,7 @@ Map presetMD = { towerTitleStyle: titleStyle.copyWith(fontSize: 18.0), towerSubtitleStyle: subtitleStyle.copyWith(fontSize: 14.5), towerSubtitleRows: 3, - towerImageWidth: 70, + towerImageWidth: 70.0, // heroes heroCrossCount: 1, @@ -126,7 +126,7 @@ Map presetLG = { towerTitleStyle: titleStyle.copyWith(fontSize: 20.0), towerSubtitleStyle: subtitleStyle.copyWith(fontSize: 15), towerSubtitleRows: 2, - towerImageWidth: 90, + towerImageWidth: 90.0, // heroes heroCrossCount: 1, @@ -156,7 +156,7 @@ Map presetXL = { towerTitleStyle: titleStyle.copyWith(fontSize: 16.0), towerSubtitleStyle: subtitleStyle.copyWith(fontSize: 14.0), towerSubtitleRows: 2, - towerImageWidth: 50, + towerImageWidth: 50.0, // heroes heroCrossCount: 2, @@ -186,7 +186,7 @@ Map presetXXL = { towerTitleStyle: titleStyle.copyWith(fontSize: 16.0), towerSubtitleStyle: subtitleStyle.copyWith(fontSize: 14.0), towerSubtitleRows: 2, - towerImageWidth: 65, + towerImageWidth: 65.0, // heroes heroCrossCount: 2, @@ -216,7 +216,7 @@ Map presetXXXL = { towerTitleStyle: titleStyle.copyWith(fontSize: 18.0), towerSubtitleStyle: subtitleStyle.copyWith(fontSize: 14.5), towerSubtitleRows: 3, - towerImageWidth: 90, + towerImageWidth: 90.0, // heroes heroCrossCount: 3,