mirror of
https://github.com/GopeedLab/gopeed.git
synced 2026-11-18 14:23:42 +00:00
feat(ui): simplify empty-list guidance with inline create action
This commit is contained in:
1 parent
75462fe2be
commit
86c8383584
26 files changed
+120
-34
No files matched your search
@@ -833,6 +833,7 @@ class _MobileTasksHeader extends StatelessWidget {
|
||||
),
|
||||
const SizedBox(width: 8),
|
||||
_MobileHeaderIconButton(
|
||||
key: const ValueKey('tasks-mobile-batch-button'),
|
||||
icon: Icons.checklist_rtl_outlined,
|
||||
active: batchMode,
|
||||
badge: batchMode && selectedCount > 0 ? selectedCount.toString() : null,
|
||||
@@ -919,7 +920,13 @@ class _MobileBatchToolbar extends StatelessWidget {
|
||||
}
|
||||
|
||||
class _MobileHeaderIconButton extends StatelessWidget {
|
||||
const _MobileHeaderIconButton({required this.icon, required this.onPressed, this.active = false, this.badge});
|
||||
const _MobileHeaderIconButton({
|
||||
super.key,
|
||||
required this.icon,
|
||||
required this.onPressed,
|
||||
this.active = false,
|
||||
this.badge,
|
||||
});
|
||||
|
||||
final IconData icon;
|
||||
final VoidCallback onPressed;
|
||||
|
||||
Reference in new issue
Block a user