Skip to content

Commit

Permalink
TextEditingController for oxygenform
Browse files Browse the repository at this point in the history
  • Loading branch information
niloysikdar committed May 1, 2021
1 parent 01b735c commit 49a1285
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions lib/screens/addoxygen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,35 @@ class AddOxygenDetails extends StatefulWidget {
}

class _AddOxygenDetailsState extends State<AddOxygenDetails> {
late TextEditingController titlecontroller;
late TextEditingController descriptioncontroller;
late TextEditingController pincontroller;

String headerstring =
"Please ensure all the data that you are providing are from verified sources.\nFeeding any false information or spamming will lead to permanent ban.";

void clearcontrollers() {
titlecontroller.clear();
descriptioncontroller.clear();
pincontroller.clear();
}

@override
void initState() {
super.initState();
titlecontroller = TextEditingController();
descriptioncontroller = TextEditingController();
pincontroller = TextEditingController();
}

@override
void dispose() {
titlecontroller.dispose();
descriptioncontroller.dispose();
pincontroller.dispose();
super.dispose();
}

@override
Widget build(BuildContext context) {
Size size = MediaQuery.of(context).size;
Expand Down

0 comments on commit 49a1285

Please sign in to comment.