Temporary setup of alternative to advertisements
This commit is contained in:
parent
ad2d932842
commit
57a9793a40
14 changed files with 653 additions and 56 deletions
|
|
@ -1,6 +1,7 @@
|
|||
import 'package:flutter/material.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
|
||||
import 'app_navigator.dart';
|
||||
import 'screens/main_shell.dart';
|
||||
import 'screens/user_agreement_screen.dart';
|
||||
import 'services/app_state.dart';
|
||||
|
|
@ -11,12 +12,6 @@ void main() {
|
|||
runApp(const FuelTaxTrackerApp());
|
||||
}
|
||||
|
||||
/// A stable handle on the navigator so [AppState.onAdWatched] can show the
|
||||
/// "remove ads" dialog from wherever the app happens to be — it fires from
|
||||
/// deep inside a background sync, not from a widget's own build method, so
|
||||
/// there's no local [BuildContext] to reach for at that point.
|
||||
final navigatorKey = GlobalKey<NavigatorState>();
|
||||
|
||||
class FuelTaxTrackerApp extends StatelessWidget {
|
||||
const FuelTaxTrackerApp({super.key});
|
||||
|
||||
|
|
@ -32,7 +27,7 @@ class FuelTaxTrackerApp extends StatelessWidget {
|
|||
};
|
||||
return MaterialApp(
|
||||
navigatorKey: navigatorKey,
|
||||
title: 'Fuel Tax Tracker',
|
||||
title: 'Receipt Tracker',
|
||||
theme: AppTheme.light,
|
||||
darkTheme: AppTheme.dark,
|
||||
themeMode: appState.themeMode,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue