mirror of
https://github.com/SyncrowIOT/syncrow-app.git
synced 2025-11-27 20:24:55 +00:00
pull to refresh
This commit is contained in:
@ -79,21 +79,34 @@ class WallMountedInterface extends StatelessWidget {
|
||||
child: RefreshProgressIndicator(),
|
||||
)
|
||||
: SafeArea(
|
||||
child: Column(
|
||||
child: RefreshIndicator(
|
||||
onRefresh: () async {
|
||||
BlocProvider.of<WallSensorBloc>(context).add(InitialEvent());
|
||||
},
|
||||
child:
|
||||
ListView(
|
||||
children: [
|
||||
PresenceIndicator(
|
||||
state: wallSensorModel.presenceState,
|
||||
),
|
||||
ParametersList(
|
||||
wallSensor: deviceModel,
|
||||
presenceSensorsModel: wallSensorModel,
|
||||
Container(
|
||||
height: MediaQuery.of(context).size.height,
|
||||
child: Column(
|
||||
|
||||
children: [
|
||||
PresenceIndicator(
|
||||
state: wallSensorModel.presenceState,
|
||||
),
|
||||
ParametersList(
|
||||
wallSensor: deviceModel,
|
||||
presenceSensorsModel: wallSensorModel,
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
));
|
||||
}),
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user