mirror of
https://github.com/wanghongenpin/proxypin.git
synced 2026-05-20 16:15:47 +08:00
51 lines
2.1 KiB
Dart
51 lines
2.1 KiB
Dart
import 'package:flutter/material.dart';
|
|
import 'package:url_launcher/url_launcher.dart';
|
|
import 'package:flutter_gen/gen_l10n/app_localizations.dart';
|
|
|
|
/// 关于
|
|
class About extends StatelessWidget {
|
|
const About({super.key});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
AppLocalizations localizations = AppLocalizations.of(context)!;
|
|
bool isCN = Localizations.localeOf(context) == const Locale.fromSubtags(languageCode: 'zh');
|
|
|
|
return Scaffold(
|
|
appBar: AppBar(title: Text(localizations.about, style: const TextStyle(fontSize: 16)), centerTitle: true),
|
|
body: Column(
|
|
children: [
|
|
const SizedBox(height: 10),
|
|
const Text("ProxyPin", style: TextStyle(fontSize: 20)),
|
|
const SizedBox(height: 20),
|
|
Padding(
|
|
padding: const EdgeInsets.only(left: 10, right: 10),
|
|
child: Text(isCN ? "全平台开源免费抓包软件" : "Full platform open source free packet capture software")),
|
|
const SizedBox(height: 10),
|
|
const Text("V1.0.7"),
|
|
ListTile(
|
|
title: const Text("Github"),
|
|
trailing: const Icon(Icons.arrow_right),
|
|
onTap: () {
|
|
launchUrl(Uri.parse("https://github.com/wanghongenpin/network_proxy_flutter"),
|
|
mode: LaunchMode.externalApplication);
|
|
}),
|
|
ListTile(
|
|
title: Text(localizations.feedback),
|
|
trailing: const Icon(Icons.arrow_right),
|
|
onTap: () {
|
|
launchUrl(Uri.parse("https://github.com/wanghongenpin/network_proxy_flutter/issues"),
|
|
mode: LaunchMode.externalApplication);
|
|
}),
|
|
ListTile(
|
|
title: Text(isCN ? "下载地址" : "Download"),
|
|
trailing: const Icon(Icons.arrow_right),
|
|
onTap: () {
|
|
launchUrl(Uri.parse("https://gitee.com/wanghongenpin/network-proxy-flutter/releases"),
|
|
mode: LaunchMode.externalApplication);
|
|
})
|
|
],
|
|
));
|
|
}
|
|
}
|