Skip to content

Commit

Permalink
Create Contactme page
Browse files Browse the repository at this point in the history
  • Loading branch information
Charunirathnayake committed Dec 5, 2019
1 parent d0be6af commit 574b884
Showing 1 changed file with 107 additions and 0 deletions.
107 changes: 107 additions & 0 deletions miniproject/lib/app_screen/Contactme.dart
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,
)




],
)
],
),

);
}
}


0 comments on commit 574b884

Please sign in to comment.