UX update to add thene class and apply the theme to entire app
This commit is contained in:
@@ -4,6 +4,7 @@ import 'package:patient_manager/components/myDropdownInput.dart';
|
||||
import 'package:patient_manager/components/myErrorMessage.dart';
|
||||
import 'package:patient_manager/components/mySearchInput.dart';
|
||||
import 'package:patient_manager/components/mybutton.dart';
|
||||
import 'package:patient_manager/theme/mihTheme.dart';
|
||||
|
||||
class PrescripInput extends StatefulWidget {
|
||||
final TextEditingController medicineController;
|
||||
@@ -187,6 +188,9 @@ class _PrescripInputState extends State<PrescripInput> {
|
||||
SizedBox(
|
||||
width: 300,
|
||||
child: MyButton(
|
||||
buttonText: "Add",
|
||||
buttonColor: MyTheme().secondaryColor(),
|
||||
textColor: MyTheme().primaryColor(),
|
||||
onTap: () {
|
||||
if (isFieldsFilled()) {
|
||||
setState(() {
|
||||
@@ -209,9 +213,6 @@ class _PrescripInputState extends State<PrescripInput> {
|
||||
);
|
||||
}
|
||||
},
|
||||
buttonText: "Add",
|
||||
buttonColor: Colors.blueAccent,
|
||||
textColor: Colors.white,
|
||||
),
|
||||
)
|
||||
],
|
||||
@@ -225,9 +226,9 @@ class _PrescripInputState extends State<PrescripInput> {
|
||||
width: 550,
|
||||
height: 400,
|
||||
decoration: BoxDecoration(
|
||||
color: Colors.white,
|
||||
color: MyTheme().primaryColor(),
|
||||
borderRadius: BorderRadius.circular(25.0),
|
||||
border: Border.all(color: Colors.blueAccent, width: 3.0),
|
||||
border: Border.all(color: MyTheme().secondaryColor(), width: 3.0),
|
||||
),
|
||||
child: ListView.separated(
|
||||
separatorBuilder: (BuildContext context, int index) {
|
||||
@@ -239,14 +240,21 @@ class _PrescripInputState extends State<PrescripInput> {
|
||||
return ListTile(
|
||||
title: Text(
|
||||
getPerscTitle(index),
|
||||
style: TextStyle(
|
||||
color: MyTheme().secondaryColor(),
|
||||
),
|
||||
),
|
||||
subtitle: Text(
|
||||
getPerscSubtitle(index),
|
||||
style: TextStyle(
|
||||
color: MyTheme().secondaryColor(),
|
||||
),
|
||||
),
|
||||
//onTap: () {},
|
||||
trailing: IconButton(
|
||||
icon: const Icon(
|
||||
icon: Icon(
|
||||
Icons.delete_forever_outlined,
|
||||
color: MyTheme().primaryColor(),
|
||||
),
|
||||
onPressed: () {
|
||||
setState(() {
|
||||
@@ -277,8 +285,8 @@ class _PrescripInputState extends State<PrescripInput> {
|
||||
// }
|
||||
},
|
||||
buttonText: "Generate",
|
||||
buttonColor: Colors.green,
|
||||
textColor: Colors.white,
|
||||
buttonColor: MyTheme().successColor(),
|
||||
textColor: MyTheme().primaryColor(),
|
||||
),
|
||||
)
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user