Beginning to use different contexts
This commit is contained in:
		
							
								
								
									
										30
									
								
								frontend/lib/pages/new_trip.dart
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										30
									
								
								frontend/lib/pages/new_trip.dart
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,30 @@ | ||||
|  | ||||
| import 'package:flutter/material.dart'; | ||||
|  | ||||
| class NewTripPage extends StatefulWidget { | ||||
|   const NewTripPage({Key? key}) : super(key: key); | ||||
|  | ||||
|   @override | ||||
|   _NewTripPageState createState() => _NewTripPageState(); | ||||
| } | ||||
|  | ||||
| class _NewTripPageState extends State<NewTripPage> { | ||||
|   @override | ||||
|   Widget build(BuildContext context) { | ||||
|     return Scaffold( | ||||
|       appBar: AppBar( | ||||
|         title: const Text('New Trip'), | ||||
|       ), | ||||
|       body: Center( | ||||
|         child: Column( | ||||
|           mainAxisAlignment: MainAxisAlignment.center, | ||||
|           children: <Widget>[ | ||||
|             const Text( | ||||
|               'Create a new trip', | ||||
|             ), | ||||
|           ], | ||||
|         ), | ||||
|       ), | ||||
|     ); | ||||
|   } | ||||
| } | ||||
| @@ -30,7 +30,7 @@ class _ProfilePageState extends State<ProfilePage> { | ||||
|  | ||||
|         Padding( | ||||
|           padding: EdgeInsets.only(left: 10, right: 10, top: 0, bottom: 10), | ||||
|           child: Text('Please rate your personal preferences so that we can taylor your experience.', style: TextStyle(fontSize: 20), ) | ||||
|           child: Text('Please rate your personal preferences so that we can taylor your experience.', style: TextStyle(fontSize: 18)) | ||||
|         ), | ||||
|  | ||||
|         // Now the sliders | ||||
|   | ||||
							
								
								
									
										27
									
								
								frontend/lib/pages/tutorial.dart
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										27
									
								
								frontend/lib/pages/tutorial.dart
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,27 @@ | ||||
| import 'package:flutter/material.dart'; | ||||
|  | ||||
|  | ||||
|  | ||||
| class TutorialPage extends StatelessWidget { | ||||
|   @override | ||||
|   Widget build(BuildContext context) { | ||||
|     return Scaffold( | ||||
|       appBar: AppBar( | ||||
|         title: Text("Tutorial"), | ||||
|       ), | ||||
|       body: Center( | ||||
|         child: Column( | ||||
|           mainAxisAlignment: MainAxisAlignment.center, | ||||
|           children: <Widget>[ | ||||
|             Text( | ||||
|               'Welcome to the tutorial page!', | ||||
|             ), | ||||
|             Text( | ||||
|               'This is where you will learn how to use the app.', | ||||
|             ), | ||||
|           ], | ||||
|         ), | ||||
|       ), | ||||
|     ); | ||||
|   } | ||||
| } | ||||
		Reference in New Issue
	
	Block a user