-
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
d0be6af
commit 574b884
Showing
1 changed file
with
107 additions
and
0 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,107 @@ | ||
import 'package:flutter/material.dart'; | ||
|
||
//create appbar | ||
class Contact extends StatelessWidget{ | ||
@override | ||
Widget build(BuildContext context) { | ||
|
||
return Scaffold( | ||
|
||
appBar: AppBar( | ||
title: Text( | ||
'Tour Guide', | ||
style: TextStyle(fontSize: 20.0), | ||
), | ||
backgroundColor: Color(0xffBA680B), | ||
actions: <Widget>[Padding( | ||
child:IconButton( | ||
icon:Icon( | ||
Icons.arrow_back, | ||
size: 25.0 | ||
) , | ||
onPressed: ( | ||
|
||
) {}, | ||
) | ||
,padding: EdgeInsets.only(right: 15.0),) | ||
], | ||
), | ||
body: Contactme(), | ||
); | ||
} | ||
} | ||
|
||
class Contactme extends StatefulWidget{ | ||
@override | ||
State<StatefulWidget> createState() { | ||
|
||
return Contactme_State(); | ||
} | ||
|
||
} | ||
|
||
class Contactme_State extends State<Contactme>{ | ||
@override | ||
Widget build(BuildContext context) { | ||
|
||
return Form( | ||
child: ListView( | ||
children: <Widget>[ | ||
Column( | ||
children: <Widget>[ | ||
Center(child: Container( | ||
height:40.0 , | ||
width:280.0 , | ||
child: TextField( | ||
decoration: InputDecoration( | ||
prefixIcon: | ||
Icon(Icons.email), | ||
labelText: 'Venue', | ||
hintText: 'Nuwara-Eliya', | ||
hintStyle: TextStyle(fontSize: 15.0, color: Colors.grey), | ||
border: OutlineInputBorder( | ||
borderRadius: BorderRadius.circular(10.0), | ||
) | ||
), | ||
) | ||
,) | ||
,), | ||
|
||
SizedBox(height: 25.0,), | ||
|
||
//ask for the time | ||
Center(child: Container( | ||
height:40.0 , | ||
width:280.0 , | ||
child: TextField( | ||
decoration: InputDecoration( | ||
prefixIcon: | ||
Icon(Icons.email), | ||
labelText: 'Time', | ||
hintText: '7.00am', | ||
hintStyle: TextStyle(fontSize: 15.0, color: Colors.grey), | ||
border: OutlineInputBorder( | ||
borderRadius: BorderRadius.circular(10.0), | ||
) | ||
), | ||
) | ||
,) | ||
,), | ||
|
||
SizedBox( | ||
height: 25.0, | ||
) | ||
|
||
|
||
|
||
|
||
], | ||
) | ||
], | ||
), | ||
|
||
); | ||
} | ||
} | ||
|
||
|