mirror of
https://github.com/JGeek00/adguard-home-manager.git
synced 2025-05-04 20:30:35 +00:00
Improved home screen when no data
This commit is contained in:
parent
b1e257ddd3
commit
707bac9d31
4 changed files with 20 additions and 5 deletions
|
@ -55,6 +55,19 @@ class TopItems extends StatelessWidget {
|
|||
),
|
||||
),
|
||||
const SizedBox(height: 20),
|
||||
if (data.isEmpty) Padding(
|
||||
padding: const EdgeInsets.only(
|
||||
bottom: 20,
|
||||
top: 10
|
||||
),
|
||||
child: Text(
|
||||
AppLocalizations.of(context)!.noItems,
|
||||
style: const TextStyle(
|
||||
fontSize: 16,
|
||||
color: Colors.grey
|
||||
),
|
||||
),
|
||||
),
|
||||
if (data.isNotEmpty) rowItem(data[0]),
|
||||
if (data.length >= 2) rowItem(data[1]),
|
||||
if (data.length >= 3) rowItem(data[2]),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue