2022-08-06 10:13:00 +00:00
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'package:localization/localization.dart';
|
|
|
|
import '../../global.dart' as global;
|
|
|
|
|
|
|
|
class AboutSettings extends StatelessWidget {
|
|
|
|
const AboutSettings({Key? key}) : super(key: key);
|
|
|
|
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
2022-08-06 20:13:12 +00:00
|
|
|
return Row(children: [
|
2022-08-06 10:13:00 +00:00
|
|
|
Text("about".i18n()),
|
|
|
|
TextButton.icon(
|
|
|
|
onPressed: () {
|
|
|
|
showAboutDialog(
|
|
|
|
context: context,
|
|
|
|
applicationName: global.name,
|
|
|
|
applicationVersion: global.version,
|
|
|
|
applicationLegalese: global.legalese,
|
|
|
|
);
|
|
|
|
},
|
|
|
|
icon: const Icon(Icons.question_mark),
|
|
|
|
label: Text("show-about-page".i18n()))
|
|
|
|
]);
|
|
|
|
}
|
|
|
|
}
|