fix:按html的假数据demo
This commit is contained in:
@@ -1,10 +1,45 @@
|
||||
import 'package:flutter/widgets.dart';
|
||||
import 'package:phosphor_flutter/phosphor_flutter.dart';
|
||||
import 'package:remixicon/remixicon.dart';
|
||||
|
||||
abstract final class AppIcons {
|
||||
static const IconData sparkle = PhosphorIconsRegular.sparkle;
|
||||
static const IconData article = PhosphorIconsRegular.article;
|
||||
static const IconData bank = PhosphorIconsRegular.bank;
|
||||
static const IconData headphones = PhosphorIconsRegular.headphones;
|
||||
static const IconData user = PhosphorIconsRegular.user;
|
||||
static const IconData sparkle = Remix.star_line;
|
||||
static const IconData sparkleFill = Remix.star_fill;
|
||||
static const IconData article = Remix.article_line;
|
||||
static const IconData articleFill = Remix.article_fill;
|
||||
static const IconData bank = Remix.bank_line;
|
||||
static const IconData bankFill = Remix.bank_fill;
|
||||
static const IconData headphones = Remix.headphone_line;
|
||||
static const IconData headphonesFill = Remix.headphone_fill;
|
||||
static const IconData user = Remix.user_3_line;
|
||||
static const IconData userFill = Remix.user_3_fill;
|
||||
|
||||
static const IconData search = Remix.search_line;
|
||||
static const IconData filter = Remix.equalizer_line;
|
||||
static const IconData sort = Remix.arrow_down_line;
|
||||
static const IconData arrowRight = Remix.arrow_right_s_line;
|
||||
static const IconData arrowLeft = Remix.arrow_left_s_line;
|
||||
static const IconData play = Remix.play_fill;
|
||||
static const IconData pause = Remix.pause_fill;
|
||||
static const IconData playCircle = Remix.play_circle_fill;
|
||||
static const IconData heart = Remix.heart_3_line;
|
||||
static const IconData heartFill = Remix.heart_3_fill;
|
||||
static const IconData externalLink = Remix.external_link_line;
|
||||
static const IconData warning = Remix.error_warning_line;
|
||||
static const IconData music = Remix.music_2_line;
|
||||
static const IconData disc = Remix.disc_line;
|
||||
static const IconData history = Remix.history_line;
|
||||
static const IconData settings = Remix.settings_3_line;
|
||||
static const IconData fileList = Remix.file_list_3_line;
|
||||
static const IconData shield = Remix.shield_check_line;
|
||||
|
||||
static IconData tabIcon(int index, {required bool selected}) {
|
||||
return switch (index) {
|
||||
0 => selected ? sparkleFill : sparkle,
|
||||
1 => selected ? articleFill : article,
|
||||
2 => selected ? bankFill : bank,
|
||||
3 => selected ? headphonesFill : headphones,
|
||||
4 => selected ? userFill : user,
|
||||
_ => selected ? sparkleFill : sparkle,
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user