athrainsky 1 éve
szülő
commit
73e0a64923
2 módosított fájl, 10 hozzáadás és 44 törlés
  1. 10 7
      lib/list.dart
  2. 0 37
      lib/listblock.dart

+ 10 - 7
lib/list.dart

@@ -15,7 +15,6 @@ class ListPage extends StatelessWidget {
           toolbarHeight: 44,
           title: Text(
             date,
-            // '${date.hour}:${date.minute}',
             style: TextStyle(color: Colors.white, fontSize: 15),
           ),
           actions: [
@@ -120,7 +119,6 @@ class Data {
 }
 
 var date = formatDate(DateTime.now(), [HH, ':', nn]);
-// var date = DateTime.now();
 
 class AvailableMenu extends StatelessWidget {
   const AvailableMenu({
@@ -185,9 +183,10 @@ class IconAdd extends StatelessWidget {
 
   @override
   Widget build(BuildContext context) {
-    return Icon(
-      Icons.add_circle,
+    return IconButton(
       color: Colors.red,
+      onPressed: () {},
+      icon: Icon(Icons.add_circle),
     );
   }
 }
@@ -202,12 +201,16 @@ class IconDelete extends StatelessWidget {
     return Row(
       mainAxisSize: MainAxisSize.min,
       children: [
-        Icon(
-          Icons.remove_circle,
+        IconButton(
+          icon: Icon(Icons.remove_circle),
           color: Colors.red,
+          onPressed: () {},
         ),
         SizedBox(width: 10),
-        Icon(Icons.menu),
+        IconButton(
+          onPressed: () {},
+          icon: Icon(Icons.menu),
+        )
       ],
     );
   }

+ 0 - 37
lib/listblock.dart

@@ -14,7 +14,6 @@ class ListBlockPage extends StatelessWidget {
           toolbarHeight: 44,
           title: Text(
             date,
-            // '${date.hour}:${date.minute}',
             style: TextStyle(color: Colors.white, fontSize: 15),
           ),
           actions: [
@@ -114,7 +113,6 @@ class Data {
 }
 
 var date = formatDate(DateTime.now(), [HH, ':', nn]);
-// var date = DateTime.now();
 
 class AvailableMenu extends StatelessWidget {
   const AvailableMenu({
@@ -173,38 +171,3 @@ class TopMenu extends StatelessWidget {
     );
   }
 }
-
-class IconAdd extends StatelessWidget {
-  const IconAdd({
-    Key? key,
-  }) : super(key: key);
-
-  @override
-  Widget build(BuildContext context) {
-    return Icon(
-      Icons.add_circle,
-      color: Colors.red,
-    );
-  }
-}
-
-class IconDelete extends StatelessWidget {
-  const IconDelete({
-    Key? key,
-  }) : super(key: key);
-
-  @override
-  Widget build(BuildContext context) {
-    return Row(
-      mainAxisSize: MainAxisSize.min,
-      children: [
-        Icon(
-          Icons.remove_circle,
-          color: Colors.red,
-        ),
-        SizedBox(width: 10),
-        Icon(Icons.menu),
-      ],
-    );
-  }
-}