reason

update styles

This diff is collapsed. Click to expand it.
import 'package:flutter/material.dart';
import 'package:one_poem/category/provider/categories_page_provider.dart';
import 'package:one_poem/util/theme_utils.dart';
import 'package:one_poem/widgets/load_image.dart';
import 'package:one_poem/widgets/my_app_bar.dart';
import 'package:provider/provider.dart';
import 'category_list_page.dart';
/// design/4商品/index.html
class CategoriesPage extends StatefulWidget {
const CategoriesPage({Key? key}) : super(key: key);
......@@ -45,18 +43,19 @@ class _CategoriesPageState extends State<CategoriesPage>
child: Scaffold(
appBar: MyAppBar(
isBack: false,
isTransparent: true,
homeMenuHeader: Container(
alignment: Alignment.center,
margin: const EdgeInsets.symmetric(horizontal: 5.0),
child: const Text(
"众妙",
style: TextStyle(color: Colors.white),
style: TextStyle(color: Colors.black54),
),
),
homeActionWidgets: IconButton(
icon: const Icon(
Icons.search,
color: Colors.white,
color: Colors.black54,
),
onPressed: () {},
),
......
......@@ -3,11 +3,7 @@ import 'package:flutter/rendering.dart';
class SysSize {
static const double avatar = 56;
// static const double iconBig = 40;
static const double iconNormal = 24;
// static const double big = 18;
// static const double normal = 16;
// static const double small = 12;
static const double iconBig = 40;
static const double big = 16;
static const double normal = 14;
......@@ -36,19 +32,19 @@ class StandardTextStyle {
fontSize: SysSize.normal,
inherit: true,
);
static const TextStyle normalWithOpacity = const TextStyle(
color: const Color.fromRGBO(0xff, 0xff, 0xff, .66),
static const TextStyle normalWithOpacity = TextStyle(
color: Color.fromRGBO(0xff, 0xff, 0xff, .66),
fontWeight: FontWeight.normal,
fontSize: SysSize.normal,
inherit: true,
);
static const TextStyle small = const TextStyle(
static const TextStyle small = TextStyle(
fontWeight: FontWeight.normal,
fontSize: SysSize.small,
inherit: true,
);
static const TextStyle smallWithOpacity = const TextStyle(
color: const Color.fromRGBO(0xff, 0xff, 0xff, .66),
static const TextStyle smallWithOpacity = TextStyle(
color: Color.fromRGBO(0xff, 0xff, 0xff, .66),
fontWeight: FontWeight.normal,
fontSize: SysSize.small,
inherit: true,
......@@ -57,20 +53,20 @@ class StandardTextStyle {
class ColorPlate {
// 配色
static const Color orange = const Color(0xffFFC459);
static const Color yellow = const Color(0xffF1E300);
static const Color green = const Color(0xff7ED321);
static const Color red = const Color(0xffEB3838);
static const Color darkGray = const Color(0xff4A4A4A);
static const Color gray = const Color(0xff9b9b9b);
static const Color lightGray = const Color(0xfff5f5f4);
static const Color black = const Color(0xff000000);
static const Color white = const Color(0xffffffff);
static const Color clear = const Color(0);
static const Color orange = Color(0xffFFC459);
static const Color yellow = Color(0xffF1E300);
static const Color green = Color(0xff7ED321);
static const Color red = Color(0xffEB3838);
static const Color darkGray = Color(0xff4A4A4A);
static const Color gray = Color(0xff9b9b9b);
static const Color lightGray = Color(0xfff5f5f4);
static const Color black = Color(0xff000000);
static const Color white = Color(0xffffffff);
static const Color clear = Color(0x00000000);
/// 深色背景
static const Color back1 = const Color(0xff1D1F22);
static const Color back1 = Color(0xff1D1F22);
/// 比深色背景略深一点
static const Color back2 = const Color(0xff121314);
static const Color back2 = Color(0xff121314);
}
......
import 'package:flutter/material.dart';
import 'package:one_poem/res/resources.dart';
class HomeActionWidgets extends StatelessWidget {
const HomeActionWidgets({
......