mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2024-11-24 00:10:47 +00:00
wip
This commit is contained in:
parent
7460f12211
commit
8697bcfec7
3 changed files with 8 additions and 3 deletions
|
@ -26,7 +26,7 @@ apply plugin: 'kotlin-android'
|
|||
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
|
||||
|
||||
android {
|
||||
compileSdkVersion flutter.compileSdkVersion
|
||||
compileSdkVersion 33
|
||||
ndkVersion flutter.ndkVersion
|
||||
|
||||
compileOptions {
|
||||
|
|
|
@ -4,6 +4,7 @@ import 'package:flutter_bloc/flutter_bloc.dart';
|
|||
import 'package:flutter_localizations/flutter_localizations.dart';
|
||||
import 'package:lightmeter/data/permissions_service.dart';
|
||||
import 'package:lightmeter/screens/settings/settings_page_route_builder.dart';
|
||||
import 'package:lightmeter/screens/settings/settings_screen.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
|
||||
import 'generated/l10n.dart';
|
||||
|
@ -11,6 +12,7 @@ import 'models/photography_value.dart';
|
|||
import 'res/dimens.dart';
|
||||
import 'res/theme.dart';
|
||||
import 'screens/metering/metering_bloc.dart';
|
||||
import 'screens/metering/metering_screen.dart';
|
||||
import 'screens/permissions_check/flow_permissions_check.dart';
|
||||
import 'utils/stop_type_provider.dart';
|
||||
|
||||
|
@ -78,7 +80,10 @@ class _ApplicationState extends State<Application> with TickerProviderStateMixin
|
|||
],
|
||||
supportedLocales: S.delegate.supportedLocales,
|
||||
home: const PermissionsCheckFlow(),
|
||||
//home: MeteringScreen(animationController: _animationController),
|
||||
routes: {
|
||||
"metering": (context) => MeteringScreen(animationController: _animationController),
|
||||
"settings": (context) => const SettingsScreen(),
|
||||
},
|
||||
),
|
||||
),
|
||||
),
|
||||
|
|
|
@ -21,7 +21,7 @@ class PermissionsCheckScreen extends StatelessWidget {
|
|||
child: BlocConsumer<PermissionsCheckBloc, PermissionsCheckState>(
|
||||
listener: (context, state) {
|
||||
if (state is PermissionsGrantedState) {
|
||||
Navigator.of(context).pushReplacement(MaterialPageRoute(builder: (_) => SettingsScreen()));
|
||||
Navigator.of(context).pushReplacementNamed("metering");
|
||||
}
|
||||
},
|
||||
builder: (context, state) {
|
||||
|
|
Loading…
Reference in a new issue