From 88bb7794945f8c8f4fa7f3f7712deaa844f3e526 Mon Sep 17 00:00:00 2001
From: uvok
Date: Thu, 31 Jul 2025 19:40:22 +0200
Subject: Prepare badge template list
---
lib/widgets/badge_template_list.dart | 32 ++++++++++++++++++++++++++++++++
lib/widgets/device_details.dart | 8 ++++++--
2 files changed, 38 insertions(+), 2 deletions(-)
create mode 100644 lib/widgets/badge_template_list.dart
(limited to 'lib/widgets')
diff --git a/lib/widgets/badge_template_list.dart b/lib/widgets/badge_template_list.dart
new file mode 100644
index 0000000..c0176be
--- /dev/null
+++ b/lib/widgets/badge_template_list.dart
@@ -0,0 +1,32 @@
+// Copyright (C) 2025, uvok cheetah
+//
+// This program is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see .
+
+import 'package:flutter/material.dart';
+import 'package:uvok_epaper_badge/model/badge_template.dart';
+import 'package:uvok_epaper_badge/widgets/notifying_list_widget.dart';
+
+class BadgeTemplateList extends NotifyingListWidget {
+ const BadgeTemplateList({super.key, required super.items});
+
+ @override
+ State createState() => _BadgeTemplateListState();
+}
+
+class _BadgeTemplateListState extends State {
+ @override
+ Widget build(BuildContext context) {
+ return const Text("nothing to see here...");
+ }
+}
diff --git a/lib/widgets/device_details.dart b/lib/widgets/device_details.dart
index 0081d3c..789455e 100644
--- a/lib/widgets/device_details.dart
+++ b/lib/widgets/device_details.dart
@@ -13,13 +13,13 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see .
-import 'dart:io';
import 'dart:ui';
import 'package:uvok_epaper_badge/model/device/device.dart';
import 'package:flutter/material.dart';
import 'package:logger/logger.dart';
import 'package:uvok_epaper_badge/model/connection/device_connection.dart';
+import 'package:uvok_epaper_badge/widgets/badge_template_list.dart';
var logger = Logger();
@@ -68,7 +68,11 @@ class DeviceDetailsState extends State {
builder: (connCtx, ConnectionStatus value, child) {
return Column(
spacing: 20,
- children: [Text("Connection state: ${value.toString()}")],
+ children: [
+ SizedBox(height: 20),
+ Text("Connection state: ${value.toString()}"),
+ BadgeTemplateList(items: []),
+ ],
);
},
),
--
cgit v1.2.3