Skip to content

Commit

Permalink
fixed bloons visuals for small screens
Browse files Browse the repository at this point in the history
  • Loading branch information
namelessto committed Feb 10, 2024
1 parent 230ae54 commit f9daacf
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 11 deletions.
3 changes: 1 addition & 2 deletions lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,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
4 changes: 1 addition & 3 deletions lib/presentation/screens/misc/favorite_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,7 @@ class _FavoriteScreenState extends State<FavoriteScreen> {
);
return Scaffold(
appBar: AppBar(
// title: const Text('Favorites'),
title: Text(MediaQuery.of(context).size.width.toString()),

title: const Text('Favorites'),
actions: [
Consumer<FavoriteState>(
builder: (context, favoriteState, child) {
Expand Down
1 change: 1 addition & 0 deletions lib/presentation/widgets/bloons/bloons_grid.dart
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ class BloonsGrid extends StatelessWidget {
child: Center(
child: ListTile(
titleAlignment: ListTileTitleAlignment.center,
contentPadding: const EdgeInsets.symmetric(horizontal: 8.5),
leading: ImageOutliner(
imageName: bloon.image,
imagePath: bloonImage(bloon.image),
Expand Down
12 changes: 6 additions & 6 deletions lib/utilities/layout_presets.dart
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ Map<String, dynamic> presetUS = {
skinCrossCount: 1,
skinAspectRatio: 1.0,
// bloons
bloonCrossCount: 1,
bloonAspectRatio: 5.5,
bloonCrossCount: 2,
bloonAspectRatio: 3.0,
bloonTitleStyle: smallTitleStyle.copyWith(fontSize: 12.0),
bloonImageWidth: 28.0,
bloonImageWidth: 18.5,
// bosses
bossCrossCount: 1,
bossAspectRatio: 4.3,
Expand Down Expand Up @@ -53,9 +53,9 @@ Map<String, dynamic> presetXS = {
skinAspectRatio: 1.0,
// bloons
bloonCrossCount: 2,
bloonAspectRatio: 2.7,
bloonTitleStyle: smallTitleStyle.copyWith(fontSize: 15.0),
bloonImageWidth: 28.0,
bloonAspectRatio: 3.0,
bloonTitleStyle: smallTitleStyle.copyWith(fontSize: 13.0),
bloonImageWidth: 18.5,
// bosses
bossCrossCount: 1,
bossAspectRatio: 4.3,
Expand Down

0 comments on commit f9daacf

Please sign in to comment.