diff --git a/.gitignore b/.gitignore index 9d532b1..d5ef3f1 100644 --- a/.gitignore +++ b/.gitignore @@ -39,3 +39,4 @@ app.*.symbols # Obfuscation related app.*.map.json + \ No newline at end of file diff --git a/lib/constant.dart b/lib/constant.dart index cd9d84c..3b97033 100644 --- a/lib/constant.dart +++ b/lib/constant.dart @@ -1,4 +1,5 @@ import 'package:flutter/material.dart'; +// This is the colouring Page Color primaryTextColor = Color(0xFF414C6B); Color secondaryTextColor = Color(0xFFE4979E); diff --git a/lib/data.dart b/lib/data.dart index 9b63773..b5de6dd 100644 --- a/lib/data.dart +++ b/lib/data.dart @@ -1,3 +1,5 @@ +// Data Page +// All of the data being used inside of the can be used here class PlanetInfo { final int position; final String name; @@ -14,6 +16,16 @@ class PlanetInfo { }); } +// Lists of The Planets +/* +Inside the last we have the data of the Planets +Such as: +Names, +iconImage, +description +images + +*/ List planets = [ PlanetInfo(1, name: 'Mercury', diff --git a/lib/main.dart b/lib/main.dart index 1e44369..83ee6cf 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -12,18 +12,22 @@ class MyApp extends StatelessWidget { @override Widget build(BuildContext context) { return MaterialApp( + // App Title title: 'Flutter Universe', + // App theming theme: ThemeData( primarySwatch: Colors.blue, visualDensity: VisualDensity.adaptivePlatformDensity, ), home: BottomBar(), + // ROutes and Screens routes: { ExploreScreen.routeName: (ctx) => ExploreScreen(), ProfileScreen.routeName: (ctx) => ProfileScreen(), BottomBar.routeName: (ctx) => BottomBar(), MyHomePage.routeName: (ctx) => MyHomePage(), }, + // This is used to remove the debug banner debugShowCheckedModeBanner: false, ); } diff --git a/lib/screens/home_page.dart b/lib/screens/home_page.dart index 936999c..1d7f2fd 100644 --- a/lib/screens/home_page.dart +++ b/lib/screens/home_page.dart @@ -29,8 +29,10 @@ class MyHomePage extends StatelessWidget { padding: EdgeInsets.all(32), child: Column( children: [ + // App Title Text( 'Space App', + // Title Text Styling style: TextStyle( fontSize: 44, fontWeight: FontWeight.w900, @@ -38,6 +40,7 @@ class MyHomePage extends StatelessWidget { ), textAlign: TextAlign.left, ), + // The DropDownButton(), DropdownButton( items: [ DropdownMenuItem( @@ -76,6 +79,7 @@ class MyHomePage extends StatelessWidget { space: 8, ), ), + // Routing and Redirection itemBuilder: (context, index) { return InkWell( onTap: () { @@ -137,6 +141,7 @@ class MyHomePage extends StatelessWidget { color: secondaryTextColor, ), ), + // The Arrow Icon Icon( Icons.arrow_forward, color: secondaryTextColor,