Skip to content

Commit

Permalink
fix: expose snackyController
Browse files Browse the repository at this point in the history
  • Loading branch information
vanlooverenkoen committed Mar 1, 2024
1 parent deb0d44 commit 2b2b67b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# 0.0.22

## Feat

- ImpaktfullApp now exposes `snackyController` to set a custom snackyController

# 0.0.21

## Feat
Expand Down
3 changes: 3 additions & 0 deletions lib/src/impaktfull_app.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import 'package:snacky/snacky.dart';
class ImpaktfullApp extends StatelessWidget {
final String title;
final Widget? home;
final SnackyController? snackyController;
final SnackyBuilder? snackyBuilder;
final ImpaktfullTheme? impaktfullTheme;
final ThemeData? materialLightTheme;
Expand All @@ -24,6 +25,7 @@ class ImpaktfullApp extends StatelessWidget {
const ImpaktfullApp({
required this.title,
this.home,
this.snackyController,
this.snackyBuilder,
this.impaktfullTheme,
this.materialLightTheme,
Expand All @@ -45,6 +47,7 @@ class ImpaktfullApp extends StatelessWidget {
setImpaktfullTheme(impaktfullTheme);
setImpaktfullLocale(locale);
return SnackyConfiguratorWidget(
snackyController: snackyController,
snackyBuilder: snackyBuilder ??
SimpleSnackyBuilder(
borderRadius:
Expand Down

0 comments on commit 2b2b67b

Please sign in to comment.