diff --git a/lib/components/config/ConfigItem.dart b/lib/components/config/ConfigItem.dart index 7afec63..16a1ebd 100644 --- a/lib/components/config/ConfigItem.dart +++ b/lib/components/config/ConfigItem.dart @@ -1,3 +1,5 @@ +import 'dart:io'; + import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; import 'package:mobile_nebula/services/utils.dart'; @@ -25,7 +27,12 @@ class ConfigItem extends StatelessWidget { child: Row( crossAxisAlignment: crossAxisAlignment, children: [ - Container(width: labelWidth, child: label), + Container( + width: labelWidth, + child: Platform.isAndroid + ? label + : DefaultTextStyle( + style: CupertinoTheme.of(context).textTheme.textStyle, child: Container(child: label))), Expanded(child: content), ], )); diff --git a/lib/components/config/ConfigPageItem.dart b/lib/components/config/ConfigPageItem.dart index e7c0149..c7776bb 100644 --- a/lib/components/config/ConfigPageItem.dart +++ b/lib/components/config/ConfigPageItem.dart @@ -45,7 +45,7 @@ class ConfigPageItem extends StatelessWidget { onPressed: this.disabled ? null : onPressed, color: Utils.configItemBackground(context), child: Container( - padding: EdgeInsets.only(left: 15), + padding: EdgeInsets.only(left: 15, right: 15), constraints: BoxConstraints(minHeight: Utils.minInteractiveSize, minWidth: double.infinity), child: Row( crossAxisAlignment: crossAxisAlignment,