cpd_2022_energy/lib/main.dart

25 lines
736 B
Dart
Raw Permalink Normal View History

2022-11-09 01:47:40 +01:00
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()),
],
)),
),
)));
}