forked from firka/student-legacy
fixed expandable fab
This commit is contained in:
parent
95cad1ed70
commit
10d1d1e0a0
@ -380,9 +380,27 @@ class _GradeSubjectViewState extends State<GradeSubjectView>
|
|||||||
.where((e) => e.type == GradeType.midYear)
|
.where((e) => e.type == GradeType.midYear)
|
||||||
.isNotEmpty,
|
.isNotEmpty,
|
||||||
child: ExpandableFab(
|
child: ExpandableFab(
|
||||||
|
openButtonBuilder: FloatingActionButtonBuilder(
|
||||||
|
size: 20.0,
|
||||||
|
builder: (context, onPressed, progress) =>
|
||||||
|
FloatingActionButton.small(
|
||||||
|
onPressed: onPressed,
|
||||||
|
backgroundColor: Theme.of(context).colorScheme.secondary,
|
||||||
|
child: const Icon(Icons.more_horiz_outlined),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
closeButtonBuilder: FloatingActionButtonBuilder(
|
||||||
|
size: 20.0,
|
||||||
|
builder: (context, onPressed, progress) =>
|
||||||
|
FloatingActionButton.small(
|
||||||
|
onPressed: onPressed,
|
||||||
|
backgroundColor: Theme.of(context).colorScheme.secondary,
|
||||||
|
child: const Icon(Icons.close),
|
||||||
|
),
|
||||||
|
),
|
||||||
type: ExpandableFabType.up,
|
type: ExpandableFabType.up,
|
||||||
distance: 50,
|
distance: 50,
|
||||||
childrenOffset: const Offset(-3.8, 0.0),
|
// childrenOffset: const Offset(-8.8, 0.0),
|
||||||
children: [
|
children: [
|
||||||
FloatingActionButton.small(
|
FloatingActionButton.small(
|
||||||
heroTag: "btn_ghost_grades",
|
heroTag: "btn_ghost_grades",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user