diff --git a/lib/app.dart b/lib/app.dart index 0db5c6ad..241c6ddd 100644 --- a/lib/app.dart +++ b/lib/app.dart @@ -53,23 +53,23 @@ class MyApp extends StatelessWidget { ), darkTheme: ThemeData.dark().copyWith( primaryColor: primaryColor, - appBarTheme: AppBarTheme(backgroundColor: primaryColor), - floatingActionButtonTheme: - FloatingActionButtonThemeData(backgroundColor: primaryColor), - iconTheme: IconThemeData(color: primaryColor), - primaryIconTheme: IconThemeData(color: primaryColor), - switchTheme: SwitchThemeData( - thumbColor: getMaterialStateColor(primaryColor), - trackColor: - getMaterialStateColor(primaryColor.withOpacity(0.7)), - ), - buttonTheme: ButtonThemeData(splashColor: primaryColor), - inputDecorationTheme: InputDecorationTheme( - labelStyle: textStyle, - focusedBorder: UnderlineInputBorder( - borderSide: BorderSide(color: primaryColor))), - radioTheme: RadioThemeData( - fillColor: getMaterialStateColor(primaryColor))), + appBarTheme: AppBarTheme(backgroundColor: primaryColor), + floatingActionButtonTheme: FloatingActionButtonThemeData( + backgroundColor: primaryColor), + iconTheme: IconThemeData(color: primaryColor), + primaryIconTheme: IconThemeData(color: primaryColor), + switchTheme: SwitchThemeData( + thumbColor: getMaterialStateColor(primaryColor), + trackColor: + getMaterialStateColor(primaryColor.withOpacity(0.7)), + ), + buttonTheme: ButtonThemeData(splashColor: primaryColor), + inputDecorationTheme: InputDecorationTheme( + labelStyle: textStyle, + focusedBorder: UnderlineInputBorder( + borderSide: BorderSide(color: primaryColor))), + radioTheme: RadioThemeData( + fillColor: getMaterialStateColor(primaryColor))), home: MyHomePage(primaryColor: primaryColor), ); }); diff --git a/lib/view/page/server/tab.dart b/lib/view/page/server/tab.dart index 68ce83b9..6c7af16b 100644 --- a/lib/view/page/server/tab.dart +++ b/lib/view/page/server/tab.dart @@ -115,15 +115,17 @@ class _ServerPageState extends State children: [ Text( serverName, - style: const TextStyle(fontWeight: FontWeight.bold), + style: const TextStyle(fontWeight: FontWeight.bold, fontSize: 12), + textScaleFactor: 1.0, ), Text(ss.uptime!, + textScaleFactor: 1.0, style: TextStyle( - color: _theme.textTheme.bodyText1!.color!.withAlpha(100))) + color: _theme.textTheme.bodyText1!.color!.withAlpha(100), fontSize: 11)) ], ), const SizedBox( - height: 13, + height: 17, ), Row( mainAxisAlignment: MainAxisAlignment.spaceBetween, @@ -143,7 +145,7 @@ class _ServerPageState extends State Widget _buildIOData(String title, String up, String down) { final statusTextStyle = TextStyle( - fontSize: 11, color: _theme.textTheme.bodyText1!.color!.withAlpha(177)); + fontSize: 9, color: _theme.textTheme.bodyText1!.color!.withAlpha(177)); return SizedBox( width: _media.size.width * 0.2, height: _media.size.height * 0.1, @@ -154,14 +156,21 @@ class _ServerPageState extends State up, style: statusTextStyle, textAlign: TextAlign.center, + textScaleFactor: 1.0, ), const SizedBox(height: 3), Text( down + '\n', style: statusTextStyle, textAlign: TextAlign.center, + textScaleFactor: 1.0, ), - Text(title, textAlign: TextAlign.center) + Text( + title, + style: const TextStyle(fontSize: 12), + textAlign: TextAlign.center, + textScaleFactor: 1.0, + ) ], ), ); @@ -188,12 +197,19 @@ class _ServerPageState extends State child: Text( '${percent.toStringAsFixed(1)}%', textAlign: TextAlign.center, + style: const TextStyle(fontSize: 11), + textScaleFactor: 1.0, ), ), ), ], ), - Text(title, textAlign: TextAlign.center), + Text( + title, + style: const TextStyle(fontSize: 12), + textAlign: TextAlign.center, + textScaleFactor: 1.0, + ), ], ), );