athrainsky 1 рік тому
батько
коміт
9dc65c1448
2 змінених файлів з 15 додано та 5 видалено
  1. 14 5
      lib/listblock.dart
  2. 1 0
      test/widget_test.dart

+ 14 - 5
lib/listblock.dart

@@ -40,7 +40,16 @@ class ListBlockPage extends StatelessWidget {
         ),
         body: Stack(children: [
           Container(
-            decoration: BoxDecoration(color: Color(0xff078C84)),
+            decoration: BoxDecoration(
+              // color: Color(0xff078C84),
+              gradient: LinearGradient(
+                  begin: Alignment.topCenter,
+                  end: Alignment.bottomCenter,
+                  colors: [
+                    Color(0xff078C84),
+                    Colors.white,
+                  ]),
+            ),
           ),
           Container(
             decoration: BoxDecoration(
@@ -66,8 +75,8 @@ class ListBlockPage extends StatelessWidget {
                     mainAxisAlignment: MainAxisAlignment.spaceEvenly,
                     children: [
                       InkWell(
-                        onTap: () =>
-                            context.go("/list/listblock/search/${items[index]['type']}"),
+                        onTap: () => context.go(
+                            "/list/listblock/search/${items[index]['type']}"),
                         child: SizedBox(
                           width: 60,
                           height: 60,
@@ -88,8 +97,8 @@ class ListBlockPage extends StatelessWidget {
                     mainAxisAlignment: MainAxisAlignment.spaceEvenly,
                     children: [
                       InkWell(
-                        onTap: () =>
-                            context.go("/list/listblock/search/${items[index]['type']}"),
+                        onTap: () => context.go(
+                            "/list/listblock/search/${items[index]['type']}"),
                         child: SizedBox(
                           width: 60,
                           height: 60,

+ 1 - 0
test/widget_test.dart

@@ -7,6 +7,7 @@
 
 import 'package:flutter/material.dart';
 import 'package:flutter_test/flutter_test.dart';
+import 'package:namer_app/main.dart';
 
 import 'package:telneo_lat/main.dart';