athrainsky 1 year ago
parent
commit
73e0a64923
2 changed files with 10 additions and 44 deletions
  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,
           toolbarHeight: 44,
           title: Text(
           title: Text(
             date,
             date,
-            // '${date.hour}:${date.minute}',
             style: TextStyle(color: Colors.white, fontSize: 15),
             style: TextStyle(color: Colors.white, fontSize: 15),
           ),
           ),
           actions: [
           actions: [
@@ -120,7 +119,6 @@ class Data {
 }
 }
 
 
 var date = formatDate(DateTime.now(), [HH, ':', nn]);
 var date = formatDate(DateTime.now(), [HH, ':', nn]);
-// var date = DateTime.now();
 
 
 class AvailableMenu extends StatelessWidget {
 class AvailableMenu extends StatelessWidget {
   const AvailableMenu({
   const AvailableMenu({
@@ -185,9 +183,10 @@ class IconAdd extends StatelessWidget {
 
 
   @override
   @override
   Widget build(BuildContext context) {
   Widget build(BuildContext context) {
-    return Icon(
-      Icons.add_circle,
+    return IconButton(
       color: Colors.red,
       color: Colors.red,
+      onPressed: () {},
+      icon: Icon(Icons.add_circle),
     );
     );
   }
   }
 }
 }
@@ -202,12 +201,16 @@ class IconDelete extends StatelessWidget {
     return Row(
     return Row(
       mainAxisSize: MainAxisSize.min,
       mainAxisSize: MainAxisSize.min,
       children: [
       children: [
-        Icon(
-          Icons.remove_circle,
+        IconButton(
+          icon: Icon(Icons.remove_circle),
           color: Colors.red,
           color: Colors.red,
+          onPressed: () {},
         ),
         ),
         SizedBox(width: 10),
         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,
           toolbarHeight: 44,
           title: Text(
           title: Text(
             date,
             date,
-            // '${date.hour}:${date.minute}',
             style: TextStyle(color: Colors.white, fontSize: 15),
             style: TextStyle(color: Colors.white, fontSize: 15),
           ),
           ),
           actions: [
           actions: [
@@ -114,7 +113,6 @@ class Data {
 }
 }
 
 
 var date = formatDate(DateTime.now(), [HH, ':', nn]);
 var date = formatDate(DateTime.now(), [HH, ':', nn]);
-// var date = DateTime.now();
 
 
 class AvailableMenu extends StatelessWidget {
 class AvailableMenu extends StatelessWidget {
   const AvailableMenu({
   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),
-      ],
-    );
-  }
-}