mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2024-11-25 08:50:40 +00:00
30 lines
713 B
Dart
30 lines
713 B
Dart
import 'package:flutter/material.dart';
|
|
import 'package:flutter_bloc/flutter_bloc.dart';
|
|
|
|
import 'models/photography_value.dart';
|
|
import 'res/theme.dart';
|
|
import 'screens/metering/metering_bloc.dart';
|
|
import 'screens/metering/metering_screen.dart';
|
|
|
|
void main() {
|
|
runApp(const MyApp());
|
|
}
|
|
|
|
class MyApp extends StatelessWidget {
|
|
const MyApp({super.key});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return BlocProvider(
|
|
create: (context) => MeteringBloc(Stop.third),
|
|
child: MaterialApp(
|
|
title: 'Flutter Demo',
|
|
theme: ThemeData(
|
|
useMaterial3: true,
|
|
colorScheme: lightColorScheme,
|
|
),
|
|
home: const MeteringScreen(),
|
|
),
|
|
);
|
|
}
|
|
}
|