26 lines
781 B
Dart
26 lines
781 B
Dart
|
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) {
|
||
|
return Row(mainAxisAlignment: MainAxisAlignment.spaceBetween, children: [
|
||
|
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()))
|
||
|
]);
|
||
|
}
|
||
|
}
|