chore: clean up

opt: pages

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-04-19 18:05:02 +08:00
parent e5f3c3c922
commit a2ef4e6f84
99 changed files with 697 additions and 2097 deletions

View File

@@ -22,7 +22,6 @@ class LoginPage extends StatefulWidget {
class _LoginPageState extends State<LoginPage> {
final LoginPageController _loginPageCtr = Get.put(LoginPageController());
// late Future<Map<String, dynamic>> codeFuture;
// 二维码生成时间
bool showPassword = false;
GlobalKey globalKey = GlobalKey();
@@ -41,7 +40,6 @@ class _LoginPageState extends State<LoginPage> {
Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
// const SizedBox(width: 20),
TextButton.icon(
onPressed: _loginPageCtr.refreshQRCode,
icon: const Icon(Icons.refresh),
@@ -64,7 +62,6 @@ class _LoginPageState extends State<LoginPage> {
Uint8List.fromList(pngBytes),
fileName: picName,
extension: 'png',
// 保存到 PiliPlus文件夹
androidRelativePath: "Pictures/PiliPlus",
skipIfExists: false,
);
@@ -108,20 +105,6 @@ class _LoginPageState extends State<LoginPage> {
),
),
);
// return QrImageView(
// backgroundColor: Colors.white,
// eyeStyle: QrEyeStyle(
// eyeShape: QrEyeShape.square,
// color: Colors.black87,
// ),
// dataModuleStyle: QrDataModuleStyle(
// dataModuleShape: QrDataModuleShape.square,
// color: Colors.black87,
// ),
// data: _loginPageCtr.codeInfo.value['data']!['url']!,
// size: 200,
// semanticsLabel: '二维码',
// );
}),
),
const SizedBox(height: 10),
@@ -132,10 +115,6 @@ class _LoginPageState extends State<LoginPage> {
)),
Obx(() => GestureDetector(
onTap: () {
//以外部方式打开此链接
// launchUrlString(
// _loginPageCtr.codeInfo.value['data']?['url'] ?? "",
// mode: LaunchMode.externalApplication);
// 复制到剪贴板
Utils.copyText(
_loginPageCtr.codeInfo.value['data']?['url'] ?? '',
@@ -387,7 +366,6 @@ class _LoginPageState extends State<LoginPage> {
});
},
value: item,
// height: menuItemHeight,
child: Row(children: [
Text(item['cname']),
const Spacer(),
@@ -400,7 +378,7 @@ class _LoginPageState extends State<LoginPage> {
),
const SizedBox(width: 6),
SizedBox(
height: 24, // 这里设置固定高度
height: 24,
child: VerticalDivider(
color: Theme.of(context)
.colorScheme