Skip to content

Commit 6211299

Browse files
committed
优化界面,修改 author 为空显示 shareUser
1 parent 705b640 commit 6211299

9 files changed

+14
-7
lines changed

lib/ui/about_screen.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ class AboutScreen extends StatelessWidget {
3333
Widget build(BuildContext context) {
3434
return Scaffold(
3535
appBar: AppBar(
36+
elevation: 0.4,
3637
title: Text("关于"),
3738
),
3839
body: new ListView(

lib/ui/setting_screen.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ class SettingScreenState extends State<SettingScreen> {
2222
Widget build(BuildContext context) {
2323
return Scaffold(
2424
appBar: AppBar(
25+
elevation: 0.4,
2526
title: Text('设置'),
2627
),
2728
body: ListView(

lib/ui/todo_add_screen.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ class TodoAddScreenSate extends State<TodoAddScreen> {
9898
child: Scaffold(
9999
resizeToAvoidBottomInset: false,
100100
appBar: AppBar(
101+
elevation: 0.4,
101102
title: new Text(toolbarTitle),
102103
),
103104
body: Container(

lib/ui/webview_screen.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,14 +72,14 @@ class WebViewScreenState extends State<WebViewScreen> {
7272
),
7373
actions: <Widget>[
7474
IconButton(
75-
tooltip: '用浏览器打开',
75+
// tooltip: '用浏览器打开',
7676
icon: Icon(Icons.language, size: 20.0),
7777
onPressed: () {
7878
RouteUtil.launchInBrowser(widget.url, title: widget.title);
7979
},
8080
),
8181
IconButton(
82-
tooltip: '分享',
82+
// tooltip: '分享',
8383
icon: Icon(Icons.share, size: 20.0),
8484
onPressed: () {
8585
Share.share('${widget.title} : ${widget.url}');

lib/widgets/item_article_list.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ class ItemArticleListState extends State<ItemArticleList> {
9393
),
9494
),
9595
Text(
96-
item.author,
96+
item.author.isNotEmpty ? item.author : item.shareUser,
9797
style: TextStyle(fontSize: 12, color: Colors.grey[600]),
9898
textAlign: TextAlign.left,
9999
),

lib/widgets/item_hot_result_list.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ class ItemHotResultListState extends State<ItemHotResultList> {
7474
),
7575
),
7676
Text(
77-
item.author,
77+
item.author.isNotEmpty ? item.author : item.shareUser,
7878
style: TextStyle(
7979
fontSize: 12,
8080
color: Colors.grey[600],

lib/widgets/item_knowledge_detail_list.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,9 @@ class ItemKnowledgeDetailListState extends State<ItemKnowledgeDetailList> {
4949
child: Row(
5050
children: <Widget>[
5151
Text(
52-
item.author,
52+
item.author.isNotEmpty
53+
? item.author
54+
: item.shareUser,
5355
style: TextStyle(
5456
fontSize: 12,
5557
color: Colors.grey[600],

lib/widgets/item_project_list.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,9 @@ class ItemProjectListState extends State<ItemProjectList> {
8181
mainAxisAlignment: MainAxisAlignment.spaceBetween,
8282
children: <Widget>[
8383
Text(
84-
item.author,
84+
item.author.isNotEmpty
85+
? item.author
86+
: item.shareUser,
8587
style: TextStyle(
8688
fontSize: 12,
8789
color: Colors.grey[600],

lib/widgets/item_wechat_list.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class ItemWeChatListState extends State<ItemWeChatList> {
3434
child: Row(
3535
children: <Widget>[
3636
Text(
37-
item.author,
37+
item.author.isNotEmpty ? item.author : item.shareUser,
3838
style: TextStyle(fontSize: 12, color: Colors.grey[600]),
3939
textAlign: TextAlign.left,
4040
),

0 commit comments

Comments
 (0)