Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,4 @@ app.*.symbols

# Obfuscation related
app.*.map.json

1 change: 1 addition & 0 deletions lib/constant.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import 'package:flutter/material.dart';
// This is the colouring Page

Color primaryTextColor = Color(0xFF414C6B);
Color secondaryTextColor = Color(0xFFE4979E);
Expand Down
12 changes: 12 additions & 0 deletions lib/data.dart
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -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<PlanetInfo> planets = [
PlanetInfo(1,
name: 'Mercury',
Expand Down
4 changes: 4 additions & 0 deletions lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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,
);
}
Expand Down
5 changes: 5 additions & 0 deletions lib/screens/home_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,18 @@ 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,
color: const Color(0xffffffff),
),
textAlign: TextAlign.left,
),
// The DropDownButton(),
DropdownButton(
items: [
DropdownMenuItem(
Expand Down Expand Up @@ -76,6 +79,7 @@ class MyHomePage extends StatelessWidget {
space: 8,
),
),
// Routing and Redirection
itemBuilder: (context, index) {
return InkWell(
onTap: () {
Expand Down Expand Up @@ -137,6 +141,7 @@ class MyHomePage extends StatelessWidget {
color: secondaryTextColor,
),
),
// The Arrow Icon
Icon(
Icons.arrow_forward,
color: secondaryTextColor,
Expand Down