add packages
This commit is contained in:
@@ -254,27 +254,6 @@ class _ProfileState extends State<Profile> {
|
||||
),
|
||||
),
|
||||
));
|
||||
Future<String> getVersionNumber() async {
|
||||
PackageInfo packageInfo = await PackageInfo.fromPlatform();
|
||||
String version = packageInfo.version + "+" + packageInfo.buildNumber;
|
||||
|
||||
return version;
|
||||
}
|
||||
|
||||
final versionbox = Container(
|
||||
padding: EdgeInsets.only(top: 15),
|
||||
child: Container(
|
||||
child: Center(
|
||||
child: FutureBuilder(
|
||||
future: getVersionNumber(),
|
||||
builder: (BuildContext context, AsyncSnapshot<String> snapshot) =>
|
||||
Text(
|
||||
snapshot.hasData ? "v${snapshot.data}" : "Loading ...",
|
||||
style: TextStyle(fontSize: 16.0, fontStyle: FontStyle.normal),
|
||||
),
|
||||
)),
|
||||
));
|
||||
|
||||
return LocalProgress(
|
||||
inAsyncCall: _isLoading,
|
||||
child: Scaffold(
|
||||
|
||||
Reference in New Issue
Block a user