mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-06-08 12:04:50 +08:00
14
lib/models/common/login_type.dart
Normal file
14
lib/models/common/login_type.dart
Normal file
@@ -0,0 +1,14 @@
|
||||
import 'package:PiliPlus/models/common/enum_with_label.dart';
|
||||
import 'package:flutter/material.dart' show Icon, Icons;
|
||||
|
||||
enum LoginType with EnumWithLabel {
|
||||
psw('密码', Icon(Icons.password)),
|
||||
qrcode('二维码', Icon(Icons.qr_code)),
|
||||
cookie('Cookie', Icon(Icons.cookie_outlined));
|
||||
|
||||
@override
|
||||
final String label;
|
||||
final Icon icon;
|
||||
|
||||
const LoginType(this.label, this.icon);
|
||||
}
|
||||
Reference in New Issue
Block a user