flutter changes

This commit is contained in:
2025-02-28 20:36:35 -06:00
parent d06b965dc1
commit 26dbda290e
12 changed files with 118 additions and 17 deletions

View File

@@ -1,6 +1,9 @@
import 'package:flutter/material.dart';
import 'package:provider/provider.dart';
import 'constants.dart' as constants;
import 'package:repertory/constants.dart' as constants;
import 'package:repertory/models/mount_list.dart';
import 'package:repertory/widgets/mount_list_widget.dart';
void main() {
runApp(const MyApp());
@@ -16,7 +19,7 @@ class MyApp extends StatelessWidget {
theme: ThemeData(
colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepOrange),
),
home: const MyHomePage(title: 'Flutter Demo Home Page'),
home: const MyHomePage(title: constants.APP_TITLE),
);
}
}
@@ -38,11 +41,9 @@ class _MyHomePageState extends State<MyHomePage> {
backgroundColor: Theme.of(context).colorScheme.inversePrimary,
title: Text(widget.title),
),
body: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[const Text('TODO-Everything')],
),
body: ChangeNotifierProvider(
create: (context) => MountList(),
child: MountListWidget(),
),
);
}