Skip to content

Commit

Permalink
Updated
Browse files Browse the repository at this point in the history
  • Loading branch information
Charunirathnayake committed Dec 5, 2019
1 parent 605a4ed commit 50c0243
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 2 deletions.
8 changes: 7 additions & 1 deletion miniproject/lib/app_screen/Login.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import 'package:flutter/material.dart';
import 'signup.dart';

//sketch of the login page
class LoginInterface extends StatelessWidget {
Expand Down Expand Up @@ -120,7 +121,11 @@ class Loginpage_state extends State<Loginpage> {

),
onTap: () {
//TODO:define ontap
Navigator.push(
context,
MaterialPageRoute(builder: (context) =>(Signup()),
));

},
),
),
Expand Down Expand Up @@ -160,6 +165,7 @@ class Loginpage_state extends State<Loginpage> {
),
onTap: () {
//TODO:DEFINE ONTAP

},
),
),
Expand Down
21 changes: 21 additions & 0 deletions miniproject/lib/app_screen/interface.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
import 'package:flutter/material.dart';
import 'package:miniproject/app_screen/Login.dart';
import 'package:miniproject/app_screen/guideprofile.dart';
import 'package:miniproject/app_screen/messages.dart';
import 'package:miniproject/app_screen/messages.dart' as prefix0;
import 'guideprofile.dart';
import 'signup.dart';

//create appbar
class Content extends StatelessWidget{
Expand Down Expand Up @@ -59,6 +65,10 @@ SizedBox(
groupValue: _selected,
onChanged: (int value){
onchanged(value);
Navigator.push(
context,
MaterialPageRoute(builder: (context) =>(Profile()),
));
},
),

Expand All @@ -77,6 +87,11 @@ Text('Travellar',style: TextStyle(fontSize: 20.0,
groupValue: _selected,
onChanged: (int value){
onchanged(value);
Navigator.push(
context,
MaterialPageRoute(builder: (context) =>(LoginInterface()),
));

},
)
],
Expand Down Expand Up @@ -105,3 +120,9 @@ Text('Travellar',style: TextStyle(fontSize: 20.0,
}

}

void navigation(value){
if (value==1){

}
}
2 changes: 1 addition & 1 deletion miniproject/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ void main(){
theme: ThemeData(
primarySwatch: Colors.brown
),
home: FilterList(),
home: Content(),
debugShowCheckedModeBanner: false,
)
);
Expand Down

0 comments on commit 50c0243

Please sign in to comment.