diff --git a/lib/screens/addoxygen.dart b/lib/screens/addoxygen.dart index ee1e84f..d404d56 100644 --- a/lib/screens/addoxygen.dart +++ b/lib/screens/addoxygen.dart @@ -7,6 +7,35 @@ class AddOxygenDetails extends StatefulWidget { } class _AddOxygenDetailsState extends State { + 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;