mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2025-01-08 17:11:14 +00:00
fix(ui): Follow MD3 guidelines regarding FABs on NavigationRails
This commit is contained in:
parent
2c11bf777d
commit
d83f8b4723
|
@ -26,6 +26,7 @@ class _NavigationRail extends SubrouteSelector {
|
|||
leading: showFab
|
||||
? const BrandFab(
|
||||
extended: false,
|
||||
elevation: 0.0,
|
||||
)
|
||||
: null,
|
||||
groupAlignment: 0.0,
|
||||
|
|
|
@ -8,10 +8,12 @@ import 'package:selfprivacy/utils/show_jobs_modal.dart';
|
|||
class BrandFab extends StatefulWidget {
|
||||
const BrandFab({
|
||||
this.extended = false,
|
||||
this.elevation,
|
||||
super.key,
|
||||
});
|
||||
|
||||
final bool extended;
|
||||
final double? elevation;
|
||||
|
||||
@override
|
||||
State<BrandFab> createState() => _BrandFabState();
|
||||
|
@ -64,6 +66,7 @@ class _BrandFabState extends State<BrandFab>
|
|||
},
|
||||
isExtended: widget.extended,
|
||||
tooltip: 'jobs.title'.tr(),
|
||||
elevation: widget.elevation,
|
||||
child: Row(
|
||||
crossAxisAlignment: CrossAxisAlignment.center,
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
|
|
Loading…
Reference in a new issue