mirror of
https://github.com/JGeek00/adguard-home-manager.git
synced 2025-04-21 22:39:11 +00:00
Added padding bottom list live logs
This commit is contained in:
parent
f7c3ba0374
commit
29af26f118
1 changed files with 25 additions and 22 deletions
|
@ -51,34 +51,37 @@ class LiveLogsList extends StatelessWidget {
|
||||||
textAlign: TextAlign.center,
|
textAlign: TextAlign.center,
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
color: Theme.of(context).colorScheme.onSurfaceVariant,
|
color: Theme.of(context).colorScheme.onSurfaceVariant,
|
||||||
fontSize: 24
|
fontSize: 22
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
if (liveLogsProvider.logs.isNotEmpty) SliverList.builder(
|
if (liveLogsProvider.logs.isNotEmpty) SliverPadding(
|
||||||
itemCount: liveLogsProvider.logs.length,
|
padding: EdgeInsets.only(bottom: MediaQuery.of(context).viewPadding.bottom),
|
||||||
itemBuilder: (context, index) => LogTile(
|
sliver: SliverList.builder(
|
||||||
log: liveLogsProvider.logs[index],
|
itemCount: liveLogsProvider.logs.length,
|
||||||
length: liveLogsProvider.logs.length,
|
itemBuilder: (context, index) => LogTile(
|
||||||
index: index,
|
log: liveLogsProvider.logs[index],
|
||||||
onLogTap: (log) {
|
length: liveLogsProvider.logs.length,
|
||||||
if (!twoColumns) {
|
index: index,
|
||||||
Navigator.of(context).push(
|
onLogTap: (log) {
|
||||||
MaterialPageRoute(
|
if (!twoColumns) {
|
||||||
builder: (context) => LogDetailsScreen(
|
Navigator.of(context).push(
|
||||||
log: log,
|
MaterialPageRoute(
|
||||||
dialog: false,
|
builder: (context) => LogDetailsScreen(
|
||||||
twoColumns: twoColumns,
|
log: log,
|
||||||
|
dialog: false,
|
||||||
|
twoColumns: twoColumns,
|
||||||
|
)
|
||||||
)
|
)
|
||||||
)
|
);
|
||||||
);
|
}
|
||||||
}
|
onLogSelected(log);
|
||||||
onLogSelected(log);
|
},
|
||||||
},
|
isLogSelected: selectedLog == liveLogsProvider.logs[index],
|
||||||
isLogSelected: selectedLog == liveLogsProvider.logs[index],
|
twoColumns: twoColumns
|
||||||
twoColumns: twoColumns
|
),
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
],
|
],
|
||||||
|
|
Loading…
Add table
Reference in a new issue