Fixed some issues home ui

This commit is contained in:
Juan Gilsanz Polo 2023-05-21 02:03:33 +02:00
parent 4a20272772
commit 9d59a5caac
3 changed files with 80 additions and 76 deletions

View file

@ -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)
],
);
}

View file

@ -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> {
),
],
),
),
);
}
}

View file

@ -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,