Skip to content

Commit

Permalink
Thinking about adaptivity
Browse files Browse the repository at this point in the history
  • Loading branch information
dan63047 committed Nov 19, 2024
1 parent 1b9249f commit 874d5a2
Show file tree
Hide file tree
Showing 16 changed files with 1,286 additions and 1,023 deletions.
1 change: 1 addition & 0 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ android {
defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId "com.dan63.tetra_stats"
testApplicationId "com.dan63.tetra_stats.dev_build"
// You can update the following values to match your application needs.
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.
minSdkVersion flutter.minSdkVersion
Expand Down
2 changes: 1 addition & 1 deletion lib/data_objects/summaries.dart
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class Summaries {
];
league =
TetraLeague.fromJson(json['league'], DateTime.now(), currentSeason, i);
if (json['league']['past'].isNotEmpty)
if (json['league']['past'] != null && json['league']['past'].isNotEmpty)
for (var key in json['league']['past'].keys) {
pastLeague[int.parse(key)] = TetraLeague.fromJson(
json['league']['past'][key],
Expand Down
2 changes: 1 addition & 1 deletion lib/gen/strings.g.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
/// Locales: 3
/// Strings: 1818 (606 per locale)
///
/// Built on 2024-09-30 at 21:23 UTC
/// Built on 2024-11-16 at 13:39 UTC
// coverage:ignore-file
// ignore_for_file: type=lint
Expand Down
12 changes: 11 additions & 1 deletion lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,17 @@ ThemeData theme = ThemeData(
expandedAlignment: Alignment.bottomCenter,
),
dropdownMenuTheme: DropdownMenuThemeData(textStyle: TextStyle(fontFamily: "Eurostile Round", fontSize: 18)),
scaffoldBackgroundColor: Colors.black
scaffoldBackgroundColor: Colors.black,
tooltipTheme: TooltipThemeData(
textStyle: TextStyle(color: Colors.white),
decoration: BoxDecoration(
borderRadius: BorderRadius.all(Radius.circular(8.0)),
border: Border.all(
color: Colors.white
),
color: Colors.black,
)
)
);

void main() async {
Expand Down
Loading

0 comments on commit 874d5a2

Please sign in to comment.