Set ConfigItem label text style correctly (#208)
* Set ConfigItem label text style correctly * Add right padding for chevrons
This commit is contained in:
parent
a449a650c3
commit
afc3abd633
|
@ -1,3 +1,5 @@
|
||||||
|
import 'dart:io';
|
||||||
|
|
||||||
import 'package:flutter/cupertino.dart';
|
import 'package:flutter/cupertino.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:mobile_nebula/services/utils.dart';
|
import 'package:mobile_nebula/services/utils.dart';
|
||||||
|
@ -25,7 +27,12 @@ class ConfigItem extends StatelessWidget {
|
||||||
child: Row(
|
child: Row(
|
||||||
crossAxisAlignment: crossAxisAlignment,
|
crossAxisAlignment: crossAxisAlignment,
|
||||||
children: <Widget>[
|
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),
|
Expanded(child: content),
|
||||||
],
|
],
|
||||||
));
|
));
|
||||||
|
|
|
@ -45,7 +45,7 @@ class ConfigPageItem extends StatelessWidget {
|
||||||
onPressed: this.disabled ? null : onPressed,
|
onPressed: this.disabled ? null : onPressed,
|
||||||
color: Utils.configItemBackground(context),
|
color: Utils.configItemBackground(context),
|
||||||
child: Container(
|
child: Container(
|
||||||
padding: EdgeInsets.only(left: 15),
|
padding: EdgeInsets.only(left: 15, right: 15),
|
||||||
constraints: BoxConstraints(minHeight: Utils.minInteractiveSize, minWidth: double.infinity),
|
constraints: BoxConstraints(minHeight: Utils.minInteractiveSize, minWidth: double.infinity),
|
||||||
child: Row(
|
child: Row(
|
||||||
crossAxisAlignment: crossAxisAlignment,
|
crossAxisAlignment: crossAxisAlignment,
|
||||||
|
|
Loading…
Reference in New Issue