From ac3a3a76ffa56318f1c8dbd8b5a662175456830f Mon Sep 17 00:00:00 2001 From: Benjamin Ramhorst Date: Wed, 9 Feb 2022 17:06:27 +0000 Subject: [PATCH] Minor refractoring to allow for cleaner code and easier bar chart integration@ --- lib/home.dart | 6 +++--- lib/{ => view}/data.dart | 0 lib/{ => view}/map.dart | 0 lib/{ => view}/settings.dart | 0 lib/{ => view}/steps.dart | 6 +++++- 5 files changed, 8 insertions(+), 4 deletions(-) rename lib/{ => view}/data.dart (100%) rename lib/{ => view}/map.dart (100%) rename lib/{ => view}/settings.dart (100%) rename lib/{ => view}/steps.dart (67%) diff --git a/lib/home.dart b/lib/home.dart index 3d4022b..3ab7aef 100644 --- a/lib/home.dart +++ b/lib/home.dart @@ -1,8 +1,8 @@ import 'package:flutter/material.dart'; -import 'package:leg_barkr_app/data.dart'; import 'package:leg_barkr_app/steps.dart'; -import 'package:leg_barkr_app/map.dart'; -import 'package:leg_barkr_app/settings.dart'; +import 'package:leg_barkr_app/view/data.dart'; +import 'package:leg_barkr_app/view/map.dart'; +import 'package:leg_barkr_app/view/settings.dart'; class HomeScreen extends StatefulWidget { const HomeScreen({Key? key}) : super(key: key); diff --git a/lib/data.dart b/lib/view/data.dart similarity index 100% rename from lib/data.dart rename to lib/view/data.dart diff --git a/lib/map.dart b/lib/view/map.dart similarity index 100% rename from lib/map.dart rename to lib/view/map.dart diff --git a/lib/settings.dart b/lib/view/settings.dart similarity index 100% rename from lib/settings.dart rename to lib/view/settings.dart diff --git a/lib/steps.dart b/lib/view/steps.dart similarity index 67% rename from lib/steps.dart rename to lib/view/steps.dart index 061f763..91a402f 100644 --- a/lib/steps.dart +++ b/lib/view/steps.dart @@ -5,6 +5,10 @@ class StepsPage extends StatelessWidget { @override Widget build(BuildContext context) { - return Text("Data Page"); + return Scaffold( + body: Center( + child: Text("Steps Page"), + ), + ); } } \ No newline at end of file