Skip to content

Commit

Permalink
calendar ui fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Spyy004 committed Apr 27, 2023
1 parent f8c7046 commit a5fdf4e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/screens/singlebucketscreen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ class BucketDetailsScreen extends StatelessWidget {
final TextEditingController descController = TextEditingController();
Future<bool> onPop(BuildContext context, singleBucketModel) async {
await singleBucketModel.clearData();
nameController.clear();
descController.clear();
navigationService.navigateReset(context, HOME);
return true;
}
Expand Down
14 changes: 14 additions & 0 deletions lib/services/createbucketservice.dart
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,20 @@ class CreateBucketService extends ChangeNotifier {
initialDate: DateTime.now(),
firstDate: DateTime.now(),
lastDate: DateTime(2100),
builder: (context, child) => Theme(
data: Theme.of(context).copyWith(
colorScheme: ColorScheme.light(
primary: Theme.of(context).secondaryHeaderColor, // <-- SEE HERE
onPrimary: MediaQuery.of(context).platformBrightness==Brightness.dark?Colors.white:Colors.black, // <-- SEE HERE
onSurface: MediaQuery.of(context).platformBrightness==Brightness.dark?Colors.white:Colors.black // <-- SEE HERE
),
textButtonTheme: TextButtonThemeData(
style: TextButton.styleFrom(
primary: Theme.of(context).secondaryHeaderColor, // button text color
),
),
),
child: child!)
);
if (pickedDate != null) {
activeSingleBucket.deadline = pickedDate;
Expand Down

0 comments on commit a5fdf4e

Please sign in to comment.