2022-11-07 18:52:21 +01:00
|
|
|
|
|
|
|
import 'package:energy_bilance/models/EnergyBilanceModel.dart';
|
2022-11-07 22:12:21 +01:00
|
|
|
import 'package:energy_bilance/widgets/EnergyDisplay.dart';
|
2022-11-07 18:52:21 +01:00
|
|
|
import 'package:energy_bilance/widgets/MyInputWidget.dart';
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'package:provider/provider.dart';
|
|
|
|
|
|
|
|
void main() {
|
|
|
|
runApp(
|
|
|
|
MaterialApp(
|
|
|
|
title: 'My App',
|
|
|
|
home: Scaffold(
|
|
|
|
body: ChangeNotifierProvider(
|
|
|
|
create: (context) => EnergyBilanceModel(),
|
|
|
|
child: Center(
|
|
|
|
child: Column(
|
|
|
|
mainAxisSize: MainAxisSize.min,
|
2022-11-07 22:12:21 +01:00
|
|
|
mainAxisAlignment: MainAxisAlignment.start,
|
|
|
|
children: const [
|
|
|
|
Expanded(child: MyInputWidget()),
|
|
|
|
Divider(),
|
|
|
|
Expanded(child: EnergyDisplay()),
|
2022-11-07 18:52:21 +01:00
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
)
|
|
|
|
)
|
|
|
|
);
|
|
|
|
|
|
|
|
}
|