Remove unneeded context passing
This commit is contained in:
parent
4ca8e96e97
commit
53f5570666
|
@ -101,10 +101,10 @@ class CommunityPage extends HookWidget {
|
||||||
void _share() =>
|
void _share() =>
|
||||||
Share.text('Share instance', community.actorId, 'text/plain');
|
Share.text('Share instance', community.actorId, 'text/plain');
|
||||||
|
|
||||||
void _openMoreMenu(BuildContext c) {
|
void _openMoreMenu() {
|
||||||
showModalBottomSheet(
|
showModalBottomSheet(
|
||||||
backgroundColor: Colors.transparent,
|
backgroundColor: Colors.transparent,
|
||||||
context: c,
|
context: context,
|
||||||
builder: (context) => BottomModal(
|
builder: (context) => BottomModal(
|
||||||
child: Column(
|
child: Column(
|
||||||
children: [
|
children: [
|
||||||
|
@ -175,7 +175,7 @@ class CommunityPage extends HookWidget {
|
||||||
IconButton(icon: Icon(Icons.share), onPressed: _share),
|
IconButton(icon: Icon(Icons.share), onPressed: _share),
|
||||||
IconButton(
|
IconButton(
|
||||||
icon: Icon(Icons.more_vert),
|
icon: Icon(Icons.more_vert),
|
||||||
onPressed: () => _openMoreMenu(context)),
|
onPressed: () => _openMoreMenu()),
|
||||||
],
|
],
|
||||||
flexibleSpace: FlexibleSpaceBar(
|
flexibleSpace: FlexibleSpaceBar(
|
||||||
background: _CommunityOverview(
|
background: _CommunityOverview(
|
||||||
|
|
Loading…
Reference in New Issue