Skip to content

Commit 9dc58a2

Browse files
committed
安卓设置界面调整标题大小,不允许获得焦点
1 parent efbd234 commit 9dc58a2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/src/tiles/platforms/android_settings_tile.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ class AndroidSettingsTile extends StatelessWidget {
4343
child: Material(
4444
color: Colors.transparent,
4545
child: InkWell(
46+
canRequestFocus: false,
4647
onTap: cantShowAnimation
4748
? null
4849
: () {
@@ -84,7 +85,7 @@ class AndroidSettingsTile extends StatelessWidget {
8485
color: enabled
8586
? theme.themeData.settingsTileTextColor
8687
: theme.themeData.inactiveTitleColor,
87-
fontSize: 18,
88+
fontSize: 16 * scaleFactor,
8889
fontWeight: FontWeight.w400,
8990
),
9091
child: title ?? Container(),

0 commit comments

Comments
 (0)