Set ConfigItem label text style correctly (#208)

* Set ConfigItem label text style correctly

* Add right padding for chevrons
This commit is contained in:
Ian VanSchooten 2024-12-18 16:12:24 -05:00 committed by GitHub
parent a449a650c3
commit afc3abd633
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 9 additions and 2 deletions

View File

@ -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: <Widget>[
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),
],
));

View File

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