reason

update styles

This diff is collapsed. Click to expand it.
1 import 'package:flutter/material.dart'; 1 import 'package:flutter/material.dart';
2 import 'package:one_poem/category/provider/categories_page_provider.dart'; 2 import 'package:one_poem/category/provider/categories_page_provider.dart';
3 import 'package:one_poem/util/theme_utils.dart'; 3 import 'package:one_poem/util/theme_utils.dart';
4 -import 'package:one_poem/widgets/load_image.dart';
5 import 'package:one_poem/widgets/my_app_bar.dart'; 4 import 'package:one_poem/widgets/my_app_bar.dart';
6 import 'package:provider/provider.dart'; 5 import 'package:provider/provider.dart';
7 6
8 import 'category_list_page.dart'; 7 import 'category_list_page.dart';
9 8
10 -/// design/4商品/index.html
11 class CategoriesPage extends StatefulWidget { 9 class CategoriesPage extends StatefulWidget {
12 const CategoriesPage({Key? key}) : super(key: key); 10 const CategoriesPage({Key? key}) : super(key: key);
13 11
...@@ -45,18 +43,19 @@ class _CategoriesPageState extends State<CategoriesPage> ...@@ -45,18 +43,19 @@ class _CategoriesPageState extends State<CategoriesPage>
45 child: Scaffold( 43 child: Scaffold(
46 appBar: MyAppBar( 44 appBar: MyAppBar(
47 isBack: false, 45 isBack: false,
46 + isTransparent: true,
48 homeMenuHeader: Container( 47 homeMenuHeader: Container(
49 alignment: Alignment.center, 48 alignment: Alignment.center,
50 margin: const EdgeInsets.symmetric(horizontal: 5.0), 49 margin: const EdgeInsets.symmetric(horizontal: 5.0),
51 child: const Text( 50 child: const Text(
52 "众妙", 51 "众妙",
53 - style: TextStyle(color: Colors.white), 52 + style: TextStyle(color: Colors.black54),
54 ), 53 ),
55 ), 54 ),
56 homeActionWidgets: IconButton( 55 homeActionWidgets: IconButton(
57 icon: const Icon( 56 icon: const Icon(
58 Icons.search, 57 Icons.search,
59 - color: Colors.white, 58 + color: Colors.black54,
60 ), 59 ),
61 onPressed: () {}, 60 onPressed: () {},
62 ), 61 ),
......
...@@ -3,11 +3,7 @@ import 'package:flutter/rendering.dart'; ...@@ -3,11 +3,7 @@ import 'package:flutter/rendering.dart';
3 3
4 class SysSize { 4 class SysSize {
5 static const double avatar = 56; 5 static const double avatar = 56;
6 - // static const double iconBig = 40;
7 static const double iconNormal = 24; 6 static const double iconNormal = 24;
8 - // static const double big = 18;
9 - // static const double normal = 16;
10 - // static const double small = 12;
11 static const double iconBig = 40; 7 static const double iconBig = 40;
12 static const double big = 16; 8 static const double big = 16;
13 static const double normal = 14; 9 static const double normal = 14;
...@@ -36,19 +32,19 @@ class StandardTextStyle { ...@@ -36,19 +32,19 @@ class StandardTextStyle {
36 fontSize: SysSize.normal, 32 fontSize: SysSize.normal,
37 inherit: true, 33 inherit: true,
38 ); 34 );
39 - static const TextStyle normalWithOpacity = const TextStyle( 35 + static const TextStyle normalWithOpacity = TextStyle(
40 - color: const Color.fromRGBO(0xff, 0xff, 0xff, .66), 36 + color: Color.fromRGBO(0xff, 0xff, 0xff, .66),
41 fontWeight: FontWeight.normal, 37 fontWeight: FontWeight.normal,
42 fontSize: SysSize.normal, 38 fontSize: SysSize.normal,
43 inherit: true, 39 inherit: true,
44 ); 40 );
45 - static const TextStyle small = const TextStyle( 41 + static const TextStyle small = TextStyle(
46 fontWeight: FontWeight.normal, 42 fontWeight: FontWeight.normal,
47 fontSize: SysSize.small, 43 fontSize: SysSize.small,
48 inherit: true, 44 inherit: true,
49 ); 45 );
50 - static const TextStyle smallWithOpacity = const TextStyle( 46 + static const TextStyle smallWithOpacity = TextStyle(
51 - color: const Color.fromRGBO(0xff, 0xff, 0xff, .66), 47 + color: Color.fromRGBO(0xff, 0xff, 0xff, .66),
52 fontWeight: FontWeight.normal, 48 fontWeight: FontWeight.normal,
53 fontSize: SysSize.small, 49 fontSize: SysSize.small,
54 inherit: true, 50 inherit: true,
...@@ -57,20 +53,20 @@ class StandardTextStyle { ...@@ -57,20 +53,20 @@ class StandardTextStyle {
57 53
58 class ColorPlate { 54 class ColorPlate {
59 // 配色 55 // 配色
60 - static const Color orange = const Color(0xffFFC459); 56 + static const Color orange = Color(0xffFFC459);
61 - static const Color yellow = const Color(0xffF1E300); 57 + static const Color yellow = Color(0xffF1E300);
62 - static const Color green = const Color(0xff7ED321); 58 + static const Color green = Color(0xff7ED321);
63 - static const Color red = const Color(0xffEB3838); 59 + static const Color red = Color(0xffEB3838);
64 - static const Color darkGray = const Color(0xff4A4A4A); 60 + static const Color darkGray = Color(0xff4A4A4A);
65 - static const Color gray = const Color(0xff9b9b9b); 61 + static const Color gray = Color(0xff9b9b9b);
66 - static const Color lightGray = const Color(0xfff5f5f4); 62 + static const Color lightGray = Color(0xfff5f5f4);
67 - static const Color black = const Color(0xff000000); 63 + static const Color black = Color(0xff000000);
68 - static const Color white = const Color(0xffffffff); 64 + static const Color white = Color(0xffffffff);
69 - static const Color clear = const Color(0); 65 + static const Color clear = Color(0x00000000);
70 66
71 /// 深色背景 67 /// 深色背景
72 - static const Color back1 = const Color(0xff1D1F22); 68 + static const Color back1 = Color(0xff1D1F22);
73 69
74 /// 比深色背景略深一点 70 /// 比深色背景略深一点
75 - static const Color back2 = const Color(0xff121314); 71 + static const Color back2 = Color(0xff121314);
76 } 72 }
......
1 import 'package:flutter/material.dart'; 1 import 'package:flutter/material.dart';
2 -import 'package:one_poem/res/resources.dart';
3 2
4 class HomeActionWidgets extends StatelessWidget { 3 class HomeActionWidgets extends StatelessWidget {
5 const HomeActionWidgets({ 4 const HomeActionWidgets({
......