Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
flutter-demo
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
刘博华
flutter-demo
Commits
6b3bad4f
Commit
6b3bad4f
authored
Apr 07, 2022
by
liubohua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
de9b550f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
76 additions
and
17 deletions
+76
-17
lib/main.dart
+76
-17
No files found.
lib/main.dart
View file @
6b3bad4f
...
@@ -2,10 +2,12 @@
...
@@ -2,10 +2,12 @@
* @Author: lbh
* @Author: lbh
* @Date: 2022-04-07 10:07:36
* @Date: 2022-04-07 10:07:36
* @LastEditors: lbh
* @LastEditors: lbh
* @LastEditTime: 2022-04-07 1
6:02:35
* @LastEditTime: 2022-04-07 1
7:46:01
* @Description: file content
* @Description: file content
*/
*/
import
'dart:html'
;
import
'package:flutter/material.dart'
;
import
'package:flutter/material.dart'
;
import
"./base/GlobalConfig.dart"
;
import
"./base/GlobalConfig.dart"
;
...
@@ -101,23 +103,80 @@ class _ListViewPageState extends State<ListViewPage> {
...
@@ -101,23 +103,80 @@ class _ListViewPageState extends State<ListViewPage> {
Widget
build
(
BuildContext
context
)
{
Widget
build
(
BuildContext
context
)
{
return
RefreshIndicator
(
return
RefreshIndicator
(
child:
ListView
.
builder
(
child:
ListView
.
builder
(
// 上拉加载控制器
// 上拉加载控制器
itemBuilder:
(
context
,
index
)
{
itemBuilder:
(
context
,
index
)
{
Widget
tip
=
const
Text
(
""
);
Widget
tip
=
const
Text
(
""
);
return
Column
(
return
Column
(
children:
<
Widget
>[
children:
[
ListTile
(
Container
(
title:
Text
(
margin:
EdgeInsets
.
fromLTRB
(
10.0
,
10.0
,
10.0
,
0.0
),
"10"
,
color:
Colors
.
white
,
maxLines:
1
,
decoration:
BoxDecoration
(
)),
borderRadius:
BorderRadius
.
all
(
const
Divider
(),
Radius
.
circular
(
8.0
),
// 加载提示
),
tip
),
],
child:
Column
(
);
children:
[
}),
ListTile
(
// 左邊
leading:
Image
.
network
(
'https://hk-ricepon.oss-cn-hongkong.aliyuncs.com/images/member//authority/202204/1648798010297.jpeg'
,
width:
40.0
,
height:
40.0
,
fit:
BoxFit
.
cover
,
),
// 標題
title:
Row
(
children:
[
Text
(
'好春光,不如夢一場!'
,
style:
TextStyle
(
fontWeight:
FontWeight
.
w500
,
fontSize:
14.0
,
),
),
Icon
(
Icons
.
arrow_forward_ios
,
size:
12.0
,
)
],
),
// 副標題
subtitle:
Text
(
'2022-4-7 16:53:19'
,
style:
TextStyle
(
fontSize:
12.0
,
),
),
trailing:
Text
(
'自取 已取消'
),
),
const
Divider
(),
Container
(
padding:
EdgeInsets
.
fromLTRB
(
70.0
,
0.0
,
16.0
,
0.0
),
child:
Row
(
children:
[
Text
(
'14'
),
Text
(
'x1'
),
],
mainAxisAlignment:
MainAxisAlignment
.
spaceBetween
,
),
),
Container
(
child:
Text
(
'共1份,總金額:
\$
14.0'
),
alignment:
Alignment
.
centerRight
,
padding:
EdgeInsets
.
all
(
16.0
),
)
],
),
),
// 加载提示
tip
],
);
},
),
onRefresh:
_onRefresh
,
onRefresh:
_onRefresh
,
);
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment