diff --git a/.idea/git_toolbox_prj.xml b/.idea/git_toolbox_prj.xml new file mode 100644 index 0000000..02b915b --- /dev/null +++ b/.idea/git_toolbox_prj.xml @@ -0,0 +1,15 @@ + + + + + + + \ No newline at end of file diff --git a/Sources/dafl_project_flutter/lib/main.dart b/Sources/dafl_project_flutter/lib/main.dart index 2ab1678..a8d6a98 100644 --- a/Sources/dafl_project_flutter/lib/main.dart +++ b/Sources/dafl_project_flutter/lib/main.dart @@ -9,6 +9,7 @@ import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; import 'package:provider/provider.dart'; import 'package:rive/rive.dart'; +import './views/location.dart'; void main() { runApp(MyApp()); @@ -26,7 +27,7 @@ class MyApp extends StatelessWidget { child: MaterialApp( debugShowCheckedModeBanner: false, title: 'Flutter Demo', - home: HomePage(), + home: LocationPage(), ), ); } diff --git a/Sources/dafl_project_flutter/lib/model/location.dart b/Sources/dafl_project_flutter/lib/model/location.dart deleted file mode 100644 index ea73494..0000000 --- a/Sources/dafl_project_flutter/lib/model/location.dart +++ /dev/null @@ -1,3 +0,0 @@ -import 'package:flutter/services.dart'; - - diff --git a/Sources/dafl_project_flutter/lib/views/location.dart b/Sources/dafl_project_flutter/lib/views/location.dart new file mode 100644 index 0000000..3ddc605 --- /dev/null +++ b/Sources/dafl_project_flutter/lib/views/location.dart @@ -0,0 +1,35 @@ +import 'package:flutter/material.dart'; + + +class LocationPage extends StatefulWidget { + @override + State createState() => _LocationPageState(); +} + +class _LocationPageState extends State { + @override + Widget build(BuildContext context) { + return Scaffold( + appBar: AppBar(title: const Text("Location Page")), + body: SafeArea( + child: Center( + child: Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + const Text('LAT: '), + const Text('LNG: '), + const Text('ADDRESS: '), + const SizedBox(height: 32), + ElevatedButton( + onPressed: () {}, + child: const Text("Get Current Location"), + ) + ], + ), + ), + ), + ); + } +} + +