2022-10-15 16:35:35 +00:00
|
|
|
import 'package:flutter/material.dart';
|
2022-10-29 18:02:45 +00:00
|
|
|
import 'package:flutter_bloc/flutter_bloc.dart';
|
2022-10-24 20:25:38 +00:00
|
|
|
|
2022-10-29 18:02:45 +00:00
|
|
|
import 'models/photography_value.dart';
|
2022-10-24 20:25:38 +00:00
|
|
|
import 'res/theme.dart';
|
2022-10-29 18:02:45 +00:00
|
|
|
import 'screens/metering/metering_bloc.dart';
|
2022-10-24 20:25:38 +00:00
|
|
|
import 'screens/metering/metering_screen.dart';
|
2022-10-15 16:35:35 +00:00
|
|
|
|
|
|
|
void main() {
|
|
|
|
runApp(const MyApp());
|
|
|
|
}
|
|
|
|
|
|
|
|
class MyApp extends StatelessWidget {
|
|
|
|
const MyApp({super.key});
|
|
|
|
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
2022-10-29 18:02:45 +00:00
|
|
|
return BlocProvider(
|
|
|
|
create: (context) => MeteringBloc(Stop.third),
|
|
|
|
child: MaterialApp(
|
|
|
|
title: 'Flutter Demo',
|
|
|
|
theme: ThemeData(
|
|
|
|
useMaterial3: true,
|
|
|
|
colorScheme: lightColorScheme,
|
|
|
|
),
|
|
|
|
home: const MeteringScreen(),
|
2022-10-15 16:38:34 +00:00
|
|
|
),
|
2022-10-15 16:35:35 +00:00
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|