feat: implement consumer and Provider.of test things
This commit is contained in:
parent
77418d216f
commit
333c89d841
3 changed files with 54 additions and 18 deletions
|
|
@ -3,6 +3,8 @@ import 'package:flutter/foundation.dart';
|
|||
|
||||
class DailyStatusModel extends ChangeNotifier {
|
||||
DailyEntry? currentDay;
|
||||
var message = "Yay, it works!";
|
||||
var message2 = "";
|
||||
|
||||
DailyStatusModel();
|
||||
|
||||
|
|
@ -23,6 +25,7 @@ class DailyStatusModel extends ChangeNotifier {
|
|||
tookPainMeds: currentDay!.tookPainMeds
|
||||
);
|
||||
}
|
||||
message2 = message;
|
||||
notifyListeners();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue