mirror of
https://github.com/JGeek00/adguard-home-manager.git
synced 2025-05-04 20:30:35 +00:00
Fixed some issues home ui
This commit is contained in:
parent
4a20272772
commit
9d59a5caac
3 changed files with 80 additions and 76 deletions
|
@ -149,7 +149,7 @@ class CombinedHomeChart extends StatelessWidget {
|
|||
);
|
||||
}
|
||||
|
||||
if (width > 900) {
|
||||
if (width > 700) {
|
||||
return Column(
|
||||
children: [
|
||||
Text(
|
||||
|
@ -213,7 +213,12 @@ class CombinedHomeChart extends StatelessWidget {
|
|||
)
|
||||
),
|
||||
],
|
||||
)
|
||||
),
|
||||
Divider(
|
||||
thickness: 1,
|
||||
color: Theme.of(context).colorScheme.onSurface.withOpacity(0.2),
|
||||
),
|
||||
const SizedBox(height: 16)
|
||||
],
|
||||
);
|
||||
}
|
||||
|
|
|
@ -208,7 +208,6 @@ class _HomeState extends State<Home> {
|
|||
],
|
||||
if (width > 700) Column(
|
||||
children: [
|
||||
const SizedBox(height: 16),
|
||||
Wrap(
|
||||
alignment: WrapAlignment.center,
|
||||
children: [
|
||||
|
@ -259,7 +258,9 @@ class _HomeState extends State<Home> {
|
|||
}
|
||||
|
||||
return Scaffold(
|
||||
body: Stack(
|
||||
body: SafeArea(
|
||||
top: false,
|
||||
child: Stack(
|
||||
children: [
|
||||
NestedScrollView(
|
||||
controller: scrollController,
|
||||
|
@ -322,6 +323,7 @@ class _HomeState extends State<Home> {
|
|||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
|
@ -21,11 +21,7 @@ class ServerStatus extends StatelessWidget {
|
|||
padding: const EdgeInsets.only(left: 16, right: 16, bottom: 16),
|
||||
child: Column(
|
||||
children: [
|
||||
Padding(
|
||||
padding: width > 700
|
||||
? const EdgeInsets.all(16)
|
||||
: const EdgeInsets.all(0),
|
||||
child: Text(
|
||||
Text(
|
||||
AppLocalizations.of(context)!.serverStatus,
|
||||
style: TextStyle(
|
||||
fontSize: 18,
|
||||
|
@ -33,10 +29,11 @@ class ServerStatus extends StatelessWidget {
|
|||
color: Theme.of(context).colorScheme.onSurface
|
||||
),
|
||||
),
|
||||
),
|
||||
const SizedBox(height: 16),
|
||||
SizedBox(
|
||||
height: width > 700 ? 70 : 170,
|
||||
height: width > 700 ? 66 : 146,
|
||||
child: GridView(
|
||||
padding: const EdgeInsets.all(0),
|
||||
physics: const NeverScrollableScrollPhysics(),
|
||||
gridDelegate: SliverGridDelegateWithFixedCrossAxisCount(
|
||||
crossAxisCount: width > 700 ? 4 : 2,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue