mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2025-01-08 00:51:20 +00:00
refactor: Deprecate showFab on BrandHeroScreen
This commit is contained in:
parent
1f5f366bc5
commit
9d6721d58b
|
@ -9,7 +9,7 @@ class BrandHeroScreen extends StatelessWidget {
|
|||
required this.children,
|
||||
super.key,
|
||||
this.hasBackButton = true,
|
||||
this.hasFlashButton = true,
|
||||
this.hasFlashButton = false,
|
||||
this.heroIcon,
|
||||
this.heroIconWidget,
|
||||
this.heroTitle = '',
|
||||
|
@ -20,6 +20,7 @@ class BrandHeroScreen extends StatelessWidget {
|
|||
|
||||
final List<Widget> children;
|
||||
final bool hasBackButton;
|
||||
@Deprecated('Flash button is now provided by root scaffold')
|
||||
final bool hasFlashButton;
|
||||
final IconData? heroIcon;
|
||||
final Widget? heroIconWidget;
|
||||
|
|
|
@ -52,6 +52,9 @@ class RootScaffoldWithNavigation extends StatelessWidget {
|
|||
hidden: !(Breakpoints.small.isActive(context) && showBottomBar),
|
||||
key: const Key('bottomBar'),
|
||||
),
|
||||
floatingActionButton: showFab && Breakpoints.small.isActive(context)
|
||||
? const BrandFab()
|
||||
: null,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue