Refactor API endpoint for getting device reports and fix the record title

This commit is contained in:
mohammad
2025-05-12 10:18:02 +03:00
parent adb42f95e8
commit 0a4ec1c6de
6 changed files with 24 additions and 7 deletions

View File

@ -23,7 +23,7 @@ class FlushPresenceRecords extends StatelessWidget {
@override
Widget build(BuildContext context) {
return DefaultScaffold(
title: title,
title: 'Presence Record',
child: BlocProvider(
create: (context) => FlushSensorBloc(deviceId: deviceId)
..add(FlushSensorGetDeviceReportsEvent(

View File

@ -61,7 +61,7 @@ class FlushMountedInterface extends StatelessWidget {
statusBarIconBrightness: Brightness.light,
),
child: DefaultScaffold(
title: deviceModel.name!,
title: FlushSensorBloc.deviceName,
actions: [
InkWell(
onTap: () async {