You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
72 lines
2.0 KiB
72 lines
2.0 KiB
import 'package:about/about.dart';
|
|
import 'package:flutter/cupertino.dart';
|
|
import 'package:flutter/foundation.dart';
|
|
import 'package:flutter/material.dart';
|
|
|
|
String appName = "ÖzgürKon";
|
|
String version = "0.1.1";
|
|
String buildNumber = "4";
|
|
|
|
class MyAbout extends StatelessWidget {
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
final theme = Theme.of(context);
|
|
final isIos = theme.platform == TargetPlatform.iOS ||
|
|
theme.platform == TargetPlatform.macOS;
|
|
|
|
Widget aboutPage = AboutPage(
|
|
values: {
|
|
'version': version,
|
|
'buildNumber': buildNumber.toString(),
|
|
'year': DateTime.now().year.toString(),
|
|
'author': "Özgür Yazılım Derneği",
|
|
},
|
|
//title: Text('About'),
|
|
applicationVersion: 'Version {{ version }}, build #{{ buildNumber }}',
|
|
applicationDescription: Text(
|
|
"ÖzgürKon app test",
|
|
textAlign: TextAlign.justify,
|
|
),
|
|
applicationIcon: Image.asset('assets/ozgurkon_disi.png'),
|
|
applicationLegalese: 'Copyright © {{ year }} {{ author }}',
|
|
children: <Widget>[
|
|
MarkdownPageListTile(
|
|
filename: 'README.md',
|
|
title: Text('View Readme'),
|
|
icon: Icon(Icons.all_inclusive),
|
|
),
|
|
MarkdownPageListTile(
|
|
filename: 'CHANGELOG.md',
|
|
title: Text('View Changelog'),
|
|
icon: Icon(Icons.view_list),
|
|
),
|
|
MarkdownPageListTile(
|
|
filename: 'LICENSE.md',
|
|
title: Text('View License'),
|
|
icon: Icon(Icons.description),
|
|
),
|
|
MarkdownPageListTile(
|
|
filename: 'CONTRIBUTORS.md',
|
|
title: Text('Contributors'),
|
|
icon: Icon(Icons.groups),
|
|
),
|
|
LicensesPageListTile(
|
|
title: Text('Free software Licenses'),
|
|
icon: Icon(Icons.favorite),
|
|
),
|
|
],
|
|
);
|
|
|
|
if (isIos) {
|
|
return CupertinoApp(
|
|
title: 'About this app',
|
|
home: aboutPage,
|
|
theme: CupertinoThemeData(
|
|
brightness: theme.brightness,
|
|
),
|
|
);
|
|
}
|
|
|
|
return aboutPage;
|
|
}
|
|
}
|
|
|