mirror of
https://github.com/SyncrowIOT/syncrow-app.git
synced 2026-10-25 23:37:55 +00:00
add settings to flush sensor
This commit is contained in:
@@ -62,7 +62,24 @@ class FlushMountedInterface extends StatelessWidget {
|
||||
),
|
||||
child: DefaultScaffold(
|
||||
title: deviceModel.name!,
|
||||
|
||||
actions: [
|
||||
InkWell(
|
||||
onTap: () async {
|
||||
var val = await Navigator.of(context).push(
|
||||
MaterialPageRoute(
|
||||
builder: (context) =>
|
||||
SettingsPage(device: deviceModel),
|
||||
),
|
||||
);
|
||||
if (val == null) {
|
||||
bloc.add(FlushSensorInitialDeviseInfo());
|
||||
bloc.add(FlushSensorInitialEvent());
|
||||
}
|
||||
},
|
||||
child: SvgPicture.asset(Assets.assetsIconsSettings),
|
||||
),
|
||||
const SizedBox(width: 10),
|
||||
],
|
||||
child: Container(
|
||||
width: MediaQuery.sizeOf(context).width,
|
||||
height: MediaQuery.sizeOf(context).height,
|
||||
|
||||
Reference in New Issue
Block a user