add option to not show style button
This commit is contained in:
parent
ececfaf93e
commit
a3b152706a
|
@ -8,9 +8,11 @@ import 'bottom_modal.dart';
|
||||||
class PostListOptions extends HookWidget {
|
class PostListOptions extends HookWidget {
|
||||||
final void Function(SortType sort) onChange;
|
final void Function(SortType sort) onChange;
|
||||||
final SortType defaultSort;
|
final SortType defaultSort;
|
||||||
|
final bool styleButton;
|
||||||
|
|
||||||
PostListOptions({
|
PostListOptions({
|
||||||
@required this.onChange,
|
@required this.onChange,
|
||||||
|
this.styleButton = true,
|
||||||
this.defaultSort = SortType.active,
|
this.defaultSort = SortType.active,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -62,10 +64,11 @@ class PostListOptions extends HookWidget {
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Spacer(),
|
Spacer(),
|
||||||
|
if (styleButton)
|
||||||
IconButton(
|
IconButton(
|
||||||
icon: Icon(Icons.view_stream),
|
icon: Icon(Icons.view_stream),
|
||||||
onPressed: () => print('TBD'),
|
onPressed: () => print('TBD'),
|
||||||
)
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue