更新
This commit is contained in:
@@ -34,6 +34,17 @@ class _EPageState extends State<PersonPage> {
|
||||
@override
|
||||
void initState() {
|
||||
super.initState();
|
||||
personController.getDiseaseData().then((apiResponse) {
|
||||
WidgetsBinding.instance.addPostFrameCallback((_) {
|
||||
TopSlideNotification.show(
|
||||
context,
|
||||
text: apiResponse.msg!,
|
||||
textColor: apiResponse.code != HttpStatusCodes.ok
|
||||
? themeController.currentColor.sc9
|
||||
: themeController.currentColor.sc2,
|
||||
);
|
||||
});
|
||||
});
|
||||
personController.selectedDiseaseIds.value = [];
|
||||
personController.name.value = '';
|
||||
personController.gender.value = 1;
|
||||
|
||||
Reference in New Issue
Block a user