diff options
Diffstat (limited to 'lib/core/utils')
-rw-r--r-- | lib/core/utils/helpers.dart | 17 | ||||
-rw-r--r-- | lib/core/utils/widgets/back_button.dart | 16 |
2 files changed, 33 insertions, 0 deletions
diff --git a/lib/core/utils/helpers.dart b/lib/core/utils/helpers.dart new file mode 100644 index 0000000..f2dbca2 --- /dev/null +++ b/lib/core/utils/helpers.dart @@ -0,0 +1,17 @@ +import 'package:flutter_ics_homescreen/export.dart'; + +class Helpers { + static Shadow dropShadowRegular = Shadow( + color: Colors.black.withOpacity(0.70), + offset: const Offset(1, 2), + blurRadius: 3); + static BoxShadow boxDropShadowRegular = BoxShadow( + color: Colors.black.withOpacity(0.70), + offset: const Offset(1, 2), + blurRadius: 3); + + static Shadow dropShadowBig = Shadow( + color: Colors.black.withOpacity(0.70), + offset: const Offset(1, 4), + blurRadius: 4); +} diff --git a/lib/core/utils/widgets/back_button.dart b/lib/core/utils/widgets/back_button.dart new file mode 100644 index 0000000..8f0862b --- /dev/null +++ b/lib/core/utils/widgets/back_button.dart @@ -0,0 +1,16 @@ +import 'package:flutter_ics_homescreen/export.dart'; + +class CustomBackButton extends ConsumerWidget { + const CustomBackButton({super.key}); + + @override + Widget build(BuildContext context, WidgetRef ref) { + return BackButton( + onPressed: () { + ref.read(appProvider.notifier).update( + (state) => state = AppState.home, + ); + }, + ); + } +} |