Toggle navigation
Toggle navigation
This project
Loading...
Sign in
OnePoem
/
OnePoem-App
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
reason
2022-01-02 16:38:12 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
2447102908d784cf2260cda611f79f020c1571f5
24471029
1 parent
c79f8cc4
update styles
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
26 deletions
lib/account/page/account_page.dart
lib/category/page/categories_page.dart
lib/tiktok/style/style.dart
lib/widgets/bars/home_action_bar.dart
lib/account/page/account_page.dart
View file @
2447102
This diff is collapsed. Click to expand it.
lib/category/page/categories_page.dart
View file @
2447102
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:
()
{},
),
...
...
lib/tiktok/style/style.dart
View file @
2447102
...
...
@@ -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
(
0x0000000
0
);
/// 深色背景
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
);
}
...
...
lib/widgets/bars/home_action_bar.dart
View file @
2447102
import
'package:flutter/material.dart'
;
import
'package:one_poem/res/resources.dart'
;
class
HomeActionWidgets
extends
StatelessWidget
{
const
HomeActionWidgets
({
...
...
Please
register
or
login
to post a comment