Skip to content

Commit

Permalink
fixed tower image width values
Browse files Browse the repository at this point in the history
  • Loading branch information
namelessto committed Jan 20, 2024
1 parent 3b1ed32 commit 3714a12
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
3 changes: 1 addition & 2 deletions lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,7 @@ class _MyHomePageState extends State<MyHomePage> {
appBar: AppBar(
title: Consumer<GlobalState>(
builder: (context, globalState, child) {
// return Text(globalState.currentTitle);
return Text(MediaQuery.of(context).size.width.toString());
return Text(globalState.currentTitle);
},
),
actions: [
Expand Down
16 changes: 8 additions & 8 deletions lib/utilities/layout_presets.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Map<String, dynamic> 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,
Expand Down Expand Up @@ -36,7 +36,7 @@ Map<String, dynamic> presetXS = {
towerTitleStyle: titleStyle.copyWith(fontSize: 15.0),
towerSubtitleStyle: subtitleStyle.copyWith(fontSize: 13.0),
towerSubtitleRows: 2,
towerImageWidth: 55,
towerImageWidth: 55.0,

// heroes
heroCrossCount: 1,
Expand Down Expand Up @@ -66,7 +66,7 @@ Map<String, dynamic> presetSM = {
towerTitleStyle: titleStyle.copyWith(fontSize: 17.0),
towerSubtitleStyle: subtitleStyle.copyWith(fontSize: 14.0),
towerSubtitleRows: 2,
towerImageWidth: 65,
towerImageWidth: 65.0,

// heroes
heroCrossCount: 1,
Expand Down Expand Up @@ -96,7 +96,7 @@ Map<String, dynamic> presetMD = {
towerTitleStyle: titleStyle.copyWith(fontSize: 18.0),
towerSubtitleStyle: subtitleStyle.copyWith(fontSize: 14.5),
towerSubtitleRows: 3,
towerImageWidth: 70,
towerImageWidth: 70.0,

// heroes
heroCrossCount: 1,
Expand Down Expand Up @@ -126,7 +126,7 @@ Map<String, dynamic> presetLG = {
towerTitleStyle: titleStyle.copyWith(fontSize: 20.0),
towerSubtitleStyle: subtitleStyle.copyWith(fontSize: 15),
towerSubtitleRows: 2,
towerImageWidth: 90,
towerImageWidth: 90.0,

// heroes
heroCrossCount: 1,
Expand Down Expand Up @@ -156,7 +156,7 @@ Map<String, dynamic> presetXL = {
towerTitleStyle: titleStyle.copyWith(fontSize: 16.0),
towerSubtitleStyle: subtitleStyle.copyWith(fontSize: 14.0),
towerSubtitleRows: 2,
towerImageWidth: 50,
towerImageWidth: 50.0,

// heroes
heroCrossCount: 2,
Expand Down Expand Up @@ -186,7 +186,7 @@ Map<String, dynamic> presetXXL = {
towerTitleStyle: titleStyle.copyWith(fontSize: 16.0),
towerSubtitleStyle: subtitleStyle.copyWith(fontSize: 14.0),
towerSubtitleRows: 2,
towerImageWidth: 65,
towerImageWidth: 65.0,

// heroes
heroCrossCount: 2,
Expand Down Expand Up @@ -216,7 +216,7 @@ Map<String, dynamic> presetXXXL = {
towerTitleStyle: titleStyle.copyWith(fontSize: 18.0),
towerSubtitleStyle: subtitleStyle.copyWith(fontSize: 14.5),
towerSubtitleRows: 3,
towerImageWidth: 90,
towerImageWidth: 90.0,

// heroes
heroCrossCount: 3,
Expand Down

0 comments on commit 3714a12

Please sign in to comment.