-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
148 changed files
with
874 additions
and
1,068 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#Fri Jun 23 08:50:38 CEST 2017 | ||
#Thu Jan 10 15:37:36 CST 2019 | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-4.6-all.zip |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,6 @@ | |
* email: [email protected] | ||
* tartget: FlatButton 的示例 | ||
*/ | ||
import 'package:fluro/fluro.dart'; | ||
import 'package:flutter/material.dart'; | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
import 'package:flutter/material.dart'; | ||
import 'package:url_launcher/url_launcher.dart'; | ||
|
||
class ListViewItem extends StatelessWidget { | ||
final String itemUrl; | ||
final String itemTitle; | ||
final String data; | ||
|
||
const ListViewItem({Key key, this.itemUrl, this.itemTitle, this.data}) | ||
: super(key: key); | ||
|
||
void _launchURL(String url, BuildContext context) async { | ||
|
||
if (await canLaunch(url)) { | ||
await launch(url); | ||
} else { | ||
throw 'Could not launch $url'; | ||
} | ||
|
||
} | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return Card( | ||
color: Colors.white, | ||
elevation: 4.0, | ||
margin: new EdgeInsets.symmetric(horizontal: 10.0, vertical: 6.0), | ||
child: ListTile( | ||
onTap: () { | ||
_launchURL(itemUrl, context); | ||
}, | ||
title: Padding( | ||
child: Text( | ||
itemTitle, | ||
style: TextStyle(color: Colors.black, fontSize: 15.0), | ||
), | ||
padding: EdgeInsets.only(top: 10.0), | ||
), | ||
subtitle: Row( | ||
children: <Widget>[ | ||
Padding( | ||
child: Text(data, | ||
style: TextStyle(color: Colors.black54, fontSize: 10.0)), | ||
padding: EdgeInsets.only(top: 10.0, bottom: 10.0), | ||
) | ||
], | ||
), | ||
trailing: | ||
Icon(Icons.keyboard_arrow_right, color: Colors.grey, size: 30.0), | ||
), | ||
); | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.