-
-
Notifications
You must be signed in to change notification settings - Fork 463
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add eventInfo Page and createEvent Page (#874)
- Loading branch information
1 parent
64099d2
commit f74842f
Showing
11 changed files
with
694 additions
and
16 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
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
91 changes: 91 additions & 0 deletions
91
lib/views/after_auth_screens/events/create_event_form.dart
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,91 @@ | ||
import 'package:flutter/material.dart'; | ||
import 'package:talawa/services/size_config.dart'; | ||
|
||
class CreateEventForm extends StatefulWidget { | ||
const CreateEventForm({Key? key}) : super(key: key); | ||
|
||
@override | ||
_CreateEventFormState createState() => _CreateEventFormState(); | ||
} | ||
|
||
class _CreateEventFormState extends State<CreateEventForm> { | ||
final _formKey = GlobalKey<FormState>(); | ||
@override | ||
Widget build(BuildContext context) { | ||
return Form( | ||
key: _formKey, | ||
child: Column( | ||
children: [ | ||
Row( | ||
children: [ | ||
const Icon(Icons.title), | ||
SizedBox( | ||
width: SizeConfig.screenWidth! * 0.045, | ||
), | ||
Flexible( | ||
child: TextFormField( | ||
textInputAction: TextInputAction.next, | ||
keyboardType: TextInputType.name, | ||
decoration: InputDecoration( | ||
labelText: 'Add Event Title', | ||
labelStyle: Theme.of(context).textTheme.subtitle1, | ||
focusedBorder: InputBorder.none, | ||
enabledBorder: InputBorder.none, | ||
)), | ||
), | ||
], | ||
), | ||
SizedBox( | ||
height: SizeConfig.screenHeight! * 0.013, | ||
), | ||
Row( | ||
children: [ | ||
const Icon(Icons.place), | ||
SizedBox( | ||
width: SizeConfig.screenWidth! * 0.045, | ||
), | ||
Flexible( | ||
child: TextFormField( | ||
textInputAction: TextInputAction.next, | ||
keyboardType: TextInputType.streetAddress, | ||
decoration: InputDecoration( | ||
hintText: 'Where is the event?', | ||
labelText: 'Add Location', | ||
labelStyle: Theme.of(context).textTheme.subtitle1, | ||
border: InputBorder.none, | ||
focusedBorder: InputBorder.none, | ||
enabledBorder: InputBorder.none, | ||
)), | ||
), | ||
], | ||
), | ||
SizedBox( | ||
height: SizeConfig.screenHeight! * 0.013, | ||
), | ||
Row( | ||
children: [ | ||
const Icon(Icons.view_headline), | ||
SizedBox( | ||
width: SizeConfig.screenWidth! * 0.045, | ||
), | ||
Flexible( | ||
child: TextFormField( | ||
keyboardType: TextInputType.multiline, | ||
maxLines: 10, | ||
minLines: 1, | ||
decoration: InputDecoration( | ||
hintText: 'Describe the event', | ||
labelText: 'Add Description', | ||
labelStyle: Theme.of(context).textTheme.subtitle1, | ||
border: InputBorder.none, | ||
focusedBorder: InputBorder.none, | ||
enabledBorder: InputBorder.none, | ||
)), | ||
), | ||
], | ||
), | ||
], | ||
), | ||
); | ||
} | ||
} |
Oops, something went wrong.