Skip to content

Commit 1c5ee9a

Browse files
committed
Merge branch 'test' of https://github.com/efoxTeam/flutter-ui into test
2 parents 0aa0eb2 + 161b817 commit 1c5ee9a

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

lib/components/widgetComp.dart

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,9 +131,8 @@ class IndexState extends State<Index> {
131131
IconButton(
132132
icon: Icon(Icons.share),
133133
onPressed: () {
134-
final String msg = Uri.encodeComponent(
135-
model.config.state.env.GithubAssetOrigin +
136-
this.mdUrl.replaceAll(RegExp('/index.md'), ''));
134+
final String msg =
135+
model.config.state.env.GithubAssetOrigin + this.mdUrl;
137136
AppShare.shareText(msg);
138137
},
139138
),

lib/page/component/index.dart

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class Index extends StatefulWidget {
1212
_IndexState createState() => _IndexState(model: this.model);
1313
}
1414

15-
class _IndexState extends State<Index> {
15+
class _IndexState extends State<Index> {
1616
final MainStateModel model;
1717
List _mapList = [];
1818
int _isExpandedIndex = -1;
@@ -31,7 +31,7 @@ class _IndexState extends State<Index> {
3131
return ExpansionPanel(
3232
headerBuilder: (context, flag) {
3333
return Container(
34-
padding: EdgeInsets.all(10),
34+
// padding: EdgeInsets.all(10),
3535
child: ListTile(
3636
leading: Icon(
3737
IconData(
@@ -48,15 +48,15 @@ class _IndexState extends State<Index> {
4848
decoration: BoxDecoration(
4949
color: Color(AppTheme.thirdColor),
5050
),
51-
padding: EdgeInsets.all(10),
51+
// padding: EdgeInsets.all(10),
5252
child: GridView.count(
5353
shrinkWrap: true,
5454
physics: ScrollPhysics(),
5555
crossAxisCount: 3,
56-
crossAxisSpacing: 10,
57-
mainAxisSpacing: 10,
56+
// crossAxisSpacing: 10,
57+
// mainAxisSpacing: 10,
5858
children: List.generate(_tmpWidgetList.length, (index) {
59-
return RaisedButton(
59+
return FlatButton(
6060
color: Color(AppTheme.secondColor),
6161
splashColor: Color(AppTheme.mainColor),
6262
child: Column(
@@ -95,8 +95,9 @@ class _IndexState extends State<Index> {
9595
Widget build(BuildContext context) {
9696
return SingleChildScrollView(
9797
physics: BouncingScrollPhysics(),
98-
// padding: EdgeInsets.all(10),
98+
// padding: EdgeInsets.all(10),
9999
child: ExpansionPanelList(
100+
animationDuration: Duration(milliseconds: 800),
100101
children: List.generate(
101102
_mapList.length,
102103
(_index) {

0 commit comments

Comments
 (0)