mirror of
https://github.com/JGeek00/adguard-home-manager.git
synced 2025-05-14 05:52:51 +00:00
Added no items to reorder message
This commit is contained in:
parent
5ca3c04c89
commit
11dd6b23bd
4 changed files with 25 additions and 9 deletions
|
@ -122,7 +122,26 @@ class _ReorderableTopItemsHomeState extends State<ReorderableTopItemsHome> {
|
|||
),
|
||||
),
|
||||
),
|
||||
reorderable_list.ReorderableList(
|
||||
if (homeTopItemsList.isEmpty) Padding(
|
||||
padding: const EdgeInsets.all(16),
|
||||
child: Column(
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
mainAxisSize: MainAxisSize.max,
|
||||
children: [
|
||||
Center(
|
||||
child: Text(
|
||||
AppLocalizations.of(context)!.noElementsReorderMessage,
|
||||
textAlign: TextAlign.center,
|
||||
style: TextStyle(
|
||||
fontSize: 18,
|
||||
color: Theme.of(context).colorScheme.onSurfaceVariant
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
if (homeTopItemsList.isNotEmpty) reorderable_list.ReorderableList(
|
||||
onReorder: _reorderCallback,
|
||||
onReorderDone: _reorderDone,
|
||||
child: ListView.builder(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue