32 lines
868 B
Dart
32 lines
868 B
Dart
|
|
import 'package:energy_bilance/models/EnergyBilanceModel.dart';
|
|
import 'package:energy_bilance/widgets/EnergyDisplay.dart';
|
|
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,
|
|
mainAxisAlignment: MainAxisAlignment.start,
|
|
children: const [
|
|
Expanded(child: MyInputWidget()),
|
|
Divider(),
|
|
Expanded(child: EnergyDisplay()),
|
|
],
|
|
)
|
|
|
|
),
|
|
),
|
|
)
|
|
)
|
|
);
|
|
|
|
} |