-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5161fa0
commit d8640f5
Showing
8 changed files
with
152 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
{ | ||
// Use IntelliSense to learn about possible attributes. | ||
// Hover to view descriptions of existing attributes. | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": "eseason", | ||
"request": "launch", | ||
"type": "dart" | ||
}, | ||
{ | ||
"name": "eseason (profile mode)", | ||
"request": "launch", | ||
"type": "dart", | ||
"flutterMode": "profile" | ||
}, | ||
{ | ||
"name": "eseason (release mode)", | ||
"request": "launch", | ||
"type": "dart", | ||
"flutterMode": "release" | ||
}, | ||
{ | ||
"name": "ESeason-online-train-season-purchesing-system", | ||
"cwd": "ESeason-online-train-season-purchesing-system", | ||
"request": "launch", | ||
"type": "dart" | ||
}, | ||
{ | ||
"name": "ESeason-online-train-season-purchesing-system (profile mode)", | ||
"cwd": "ESeason-online-train-season-purchesing-system", | ||
"request": "launch", | ||
"type": "dart", | ||
"flutterMode": "profile" | ||
}, | ||
{ | ||
"name": "ESeason-online-train-season-purchesing-system (release mode)", | ||
"cwd": "ESeason-online-train-season-purchesing-system", | ||
"request": "launch", | ||
"type": "dart", | ||
"flutterMode": "release" | ||
} | ||
] | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
import 'package:flutter/material.dart'; | ||
import 'main_app_page.dart'; | ||
|
||
class HomePage extends StatelessWidget { | ||
@override | ||
Widget build(BuildContext context) { | ||
return Scaffold( | ||
backgroundColor: Color(0xFF3A3A58), | ||
body: Column( | ||
mainAxisAlignment: MainAxisAlignment.center, | ||
children: [ | ||
// Background image of the train | ||
ClipRRect( | ||
borderRadius: BorderRadius.vertical(bottom: Radius.circular(50)), | ||
child: Image.asset( | ||
'assets/train_background.jpeg', | ||
height: MediaQuery.of(context).size.height * 0.45, | ||
width: double.infinity, | ||
fit: BoxFit.cover, | ||
), | ||
), | ||
SizedBox(height: 30), | ||
// Title Text | ||
Text( | ||
'E - Season', | ||
style: TextStyle( | ||
fontSize: 36, | ||
fontWeight: FontWeight.bold, | ||
color: Colors.white, | ||
letterSpacing: 1.5, | ||
), | ||
), | ||
SizedBox(height: 10), | ||
// Subtitle Text | ||
Padding( | ||
padding: const EdgeInsets.symmetric(horizontal: 20.0), | ||
child: Text( | ||
'Ride Smarter, Book Faster – Your Season Ticket, Just a Click Away!', | ||
textAlign: TextAlign.center, | ||
style: TextStyle( | ||
fontSize: 16, | ||
color: Colors.white70, | ||
), | ||
), | ||
), | ||
SizedBox(height: 30), | ||
// Train Icon as a Button | ||
GestureDetector( | ||
onTap: () { | ||
// Navigate to the main app page | ||
Navigator.push( | ||
context, | ||
MaterialPageRoute(builder: (context) => MainAppPage()), | ||
); | ||
}, | ||
child: Container( | ||
padding: EdgeInsets.all(10), | ||
decoration: BoxDecoration( | ||
shape: BoxShape.circle, | ||
border: Border.all(color: Colors.redAccent, width: 2), | ||
), | ||
child: Image.asset( | ||
'assets/train_btn.png', // Make sure the filename matches | ||
height: 80, | ||
width: 80, | ||
), | ||
), | ||
), | ||
], | ||
), | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// lib/screens/main_app_page.dart | ||
|
||
import 'package:flutter/material.dart'; | ||
|
||
class MainAppPage extends StatelessWidget { | ||
@override | ||
Widget build(BuildContext context) { | ||
return Scaffold( | ||
appBar: AppBar(title: Text('Main App')), | ||
body: Center(child: Text('Welcome to the Main App!')), | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters