update
This commit is contained in:
parent
5469c484e1
commit
c87b10a050
11 changed files with 241 additions and 39 deletions
|
|
@ -1,6 +1,7 @@
|
|||
import 'package:flutter/material.dart';
|
||||
import 'package:gap/gap.dart';
|
||||
import 'package:google_fonts/google_fonts.dart';
|
||||
import 'package:pharmacy_mobile/widgets/input_widget.dart';
|
||||
// import 'package:google_fonts/google_fonts.dart';
|
||||
import 'package:pharmacy_mobile/widgets/text_widget.dart';
|
||||
import 'package:pharmacy_mobile/widgets/title_widget.dart';
|
||||
|
||||
|
|
@ -12,6 +13,29 @@ class AddMedicinePage extends StatefulWidget {
|
|||
}
|
||||
|
||||
class AddMedicinePageState extends State<AddMedicinePage> {
|
||||
final _formKey = GlobalKey<FormState>();
|
||||
// final _authService = AuthService();
|
||||
final _nameController = TextEditingController();
|
||||
final _genericNameController = TextEditingController();
|
||||
final _typeController = TextEditingController();
|
||||
final _manufactorerController = TextEditingController();
|
||||
final FocusNode _focusNode = FocusNode();
|
||||
|
||||
// @override
|
||||
// void initState() {
|
||||
// super.initState();
|
||||
// }
|
||||
|
||||
@override
|
||||
void dispose() {
|
||||
_nameController.dispose();
|
||||
_genericNameController.dispose();
|
||||
_typeController.dispose();
|
||||
_manufactorerController.dispose();
|
||||
_focusNode.dispose();
|
||||
super.dispose();
|
||||
}
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Scaffold(
|
||||
|
|
@ -36,6 +60,15 @@ class AddMedicinePageState extends State<AddMedicinePage> {
|
|||
const Gap(32),
|
||||
const TextWidget(text: 'Add Medicine'),
|
||||
const Gap(16),
|
||||
Form(
|
||||
key: _formKey,
|
||||
child: Center(
|
||||
child: Column(
|
||||
children: [
|
||||
InputWidget(label: 'Name', controller: _nameController),
|
||||
],
|
||||
),
|
||||
))
|
||||
],
|
||||
),
|
||||
),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue