mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2025-01-09 17:39:42 +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
|
leading: showFab
|
||||||
? const BrandFab(
|
? const BrandFab(
|
||||||
extended: false,
|
extended: false,
|
||||||
|
elevation: 0.0,
|
||||||
)
|
)
|
||||||
: null,
|
: null,
|
||||||
groupAlignment: 0.0,
|
groupAlignment: 0.0,
|
||||||
|
|
|
@ -8,10 +8,12 @@ import 'package:selfprivacy/utils/show_jobs_modal.dart';
|
||||||
class BrandFab extends StatefulWidget {
|
class BrandFab extends StatefulWidget {
|
||||||
const BrandFab({
|
const BrandFab({
|
||||||
this.extended = false,
|
this.extended = false,
|
||||||
|
this.elevation,
|
||||||
super.key,
|
super.key,
|
||||||
});
|
});
|
||||||
|
|
||||||
final bool extended;
|
final bool extended;
|
||||||
|
final double? elevation;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
State<BrandFab> createState() => _BrandFabState();
|
State<BrandFab> createState() => _BrandFabState();
|
||||||
|
@ -64,6 +66,7 @@ class _BrandFabState extends State<BrandFab>
|
||||||
},
|
},
|
||||||
isExtended: widget.extended,
|
isExtended: widget.extended,
|
||||||
tooltip: 'jobs.title'.tr(),
|
tooltip: 'jobs.title'.tr(),
|
||||||
|
elevation: widget.elevation,
|
||||||
child: Row(
|
child: Row(
|
||||||
crossAxisAlignment: CrossAxisAlignment.center,
|
crossAxisAlignment: CrossAxisAlignment.center,
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
|
|
Loading…
Reference in a new issue