fix(ui): fix error text in warning card and update information for device's inter-family owner

This commit is contained in:
anhtunz
2025-07-21 10:09:19 +07:00
parent 4ff2ad4396
commit fe622d8af9
4 changed files with 98 additions and 179 deletions

View File

@@ -117,6 +117,9 @@ Future<Widget> notificationCard(BuildContext context, String notificationType,
),
],
),
SizedBox(
height: context.lowValue,
),
device.isOwner!
? Align(
alignment: Alignment.centerRight,
@@ -152,20 +155,6 @@ Future<Widget> notificationCard(BuildContext context, String notificationType,
),
),
),
OutlinedButton(
style: const ButtonStyle(
backgroundColor:
WidgetStatePropertyAll(Colors.blueAccent),
),
onPressed: () {
context.pushNamed(AppRoutes.DEVICE_DETAIL.name,
pathParameters: {'thingID': device.thingId!});
},
child: Text(
appLocalization(context).detail_message,
style: const TextStyle(color: Colors.white),
),
),
],
),
],