25 lines
736 B
Dart
25 lines
736 B
Dart
|
import 'package:energy/models/CalculateModels.dart';
|
||
|
import 'package:energy/widgets/OutputWidget.dart';
|
||
|
import 'package:energy/widgets/InputWidget.dart';
|
||
|
import 'package:flutter/material.dart';
|
||
|
import 'package:provider/provider.dart';
|
||
|
|
||
|
void main() {
|
||
|
runApp(MaterialApp(
|
||
|
title: 'Energy',
|
||
|
home: Scaffold(
|
||
|
body: ChangeNotifierProvider(
|
||
|
create: (context) => CalculateModels(),
|
||
|
child: Center(
|
||
|
child: Column(
|
||
|
mainAxisSize: MainAxisSize.min,
|
||
|
mainAxisAlignment: MainAxisAlignment.start,
|
||
|
children: const [
|
||
|
Expanded(child: InputWidget()),
|
||
|
Expanded(child: EnergyDisplay()),
|
||
|
],
|
||
|
)),
|
||
|
),
|
||
|
)));
|
||
|
}
|