Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
gmalpha_flutter
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
mobile
gmalpha_flutter
Commits
b60f94e8
Commit
b60f94e8
authored
Oct 24, 2019
by
何碧荣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
发现页
parent
ccf6761f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
7 deletions
+31
-7
FindPage.dart
lib/FindModel/page/FindPage.dart
+31
-7
No files found.
lib/FindModel/page/FindPage.dart
View file @
b60f94e8
...
...
@@ -4,6 +4,7 @@ import 'package:gmalpha_flutter/FindModel/page/FindModel.dart';
import
'package:gmalpha_flutter/NewMessageModel/page/messagePage/common.dart'
;
import
'package:gmalpha_flutter/commonModel/base/BasePage.dart'
;
import
'package:gmalpha_flutter/res/value/ALColors.dart'
;
import
'package:flutter_staggered_grid_view/flutter_staggered_grid_view.dart'
;
class
FindPage
extends
StatefulWidget
{
FindModel
_findModel
;
...
...
@@ -21,7 +22,7 @@ class _FindPageState extends BasePage<FindPage> {
FindModel
_findModel
;
static
int
count
=
8
;
static
int
page
=
1
;
ScrollController
_scrollController
=
new
ScrollController
();
_FindPageState
(
this
.
_findModel
);
@override
...
...
@@ -29,12 +30,35 @@ class _FindPageState extends BasePage<FindPage> {
ScreenUtil
.
instance
=
ScreenUtil
(
width:
375.0
,
height:
667.0
)
..
init
(
context
);
return
Scaffold
(
appBar:
AppBar
(
centerTitle:
false
,
leading:
messageTitle
(
'发现'
),
elevation:
0
,
backgroundColor:
ALColors
.
ColorFFFFFF
,
),
appBar:
AppBar
(
centerTitle:
false
,
leading:
messageTitle
(
'发现'
),
elevation:
0
,
backgroundColor:
ALColors
.
ColorFFFFFF
,
),
body:
new
Padding
(
padding:
const
EdgeInsets
.
only
(
top:
0.0
),
child:
listItemInfo
(),
));
}
Widget
listItemInfo
()
{
return
new
StaggeredGridView
.
countBuilder
(
controller:
_scrollController
,
crossAxisCount:
4
,
itemCount:
20
,
itemBuilder:
(
BuildContext
context
,
int
index
)
=>
new
Container
(
color:
Colors
.
green
,
child:
new
Center
(
child:
new
CircleAvatar
(
backgroundColor:
Colors
.
white
,
child:
new
Text
(
'
$index
'
),
),
)),
staggeredTileBuilder:
(
int
index
)
=>
new
StaggeredTile
.
count
(
2
,
index
.
isEven
?
2
:
1
),
mainAxisSpacing:
4.0
,
crossAxisSpacing:
4.0
,
);
}
...
...
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