diff options
-rw-r--r-- | lib/model/badge_template.dart | 16 | ||||
-rw-r--r-- | lib/widgets/badge_template_list.dart | 32 | ||||
-rw-r--r-- | lib/widgets/device_details.dart | 8 |
3 files changed, 54 insertions, 2 deletions
diff --git a/lib/model/badge_template.dart b/lib/model/badge_template.dart new file mode 100644 index 0000000..98503ca --- /dev/null +++ b/lib/model/badge_template.dart @@ -0,0 +1,16 @@ +// 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 <https://www.gnu.org/licenses/>. + +class BadgeTemplate {} 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 <https://www.gnu.org/licenses/>. + +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<BadgeTemplate> { + const BadgeTemplateList({super.key, required super.items}); + + @override + State<StatefulWidget> createState() => _BadgeTemplateListState(); +} + +class _BadgeTemplateListState extends State<BadgeTemplateList> { + @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 <https://www.gnu.org/licenses/>. -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<DeviceDetailsScreen> { 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: []), + ], ); }, ), |