Skip to content

Commit

Permalink
Add refresh button to mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
bdlukaa committed Jun 28, 2023
1 parent 561488e commit edbfaa2
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions lib/widgets/events/events_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,14 @@ class _EventsScreenState extends State<EventsScreen> {
leading: MaybeUnityDrawerButton(context),
title: Text(loc.eventBrowser),
actions: [
IconButton(
onPressed: () {
eventsScreenKey.currentState?.fetch();
},
icon: const Icon(Icons.refresh),
iconSize: 20.0,
tooltip: loc.refresh,
),
Padding(
padding: const EdgeInsetsDirectional.only(end: 15.0),
child: IconButton(
Expand Down Expand Up @@ -242,10 +250,7 @@ class _EventsScreenState extends State<EventsScreen> {
shape: const RoundedRectangleBorder(),
child: DropdownButtonHideUnderline(
child: Column(children: [
SubHeader(
loc.servers,
height: 40.0,
),
SubHeader(loc.servers, height: 40.0),
Expanded(
child: SingleChildScrollView(
child: buildTreeView(context, setState: setState),
Expand Down

0 comments on commit edbfaa2

Please sign in to comment.