29 lines
633 B
Dart
29 lines
633 B
Dart
|
import 'package:flutter/material.dart';
|
||
|
import 'package:flutter_bloc/flutter_bloc.dart';
|
||
|
import 'package:kalodings/food_entry_bloc.dart';
|
||
|
import 'package:kalodings/perday_widget.dart';
|
||
|
|
||
|
void main() {
|
||
|
runApp(const MainApp());
|
||
|
}
|
||
|
|
||
|
class MainApp extends StatelessWidget {
|
||
|
const MainApp({super.key});
|
||
|
|
||
|
@override
|
||
|
Widget build(BuildContext context) {
|
||
|
return BlocProvider(
|
||
|
create: (BuildContext context) {
|
||
|
return FoodEntryBloc(FoodEntryState.init());
|
||
|
},
|
||
|
child: const MaterialApp(
|
||
|
home: Scaffold(
|
||
|
body: Center(
|
||
|
child: PerDay(),
|
||
|
),
|
||
|
),
|
||
|
),
|
||
|
);
|
||
|
}
|
||
|
}
|