Remove unneeded context passing

This commit is contained in:
krawieck 2020-09-10 15:18:24 +02:00
parent 4ca8e96e97
commit 53f5570666
1 changed files with 3 additions and 3 deletions

View File

@ -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(