Replace deprecated theme properties
This commit is contained in:
parent
f25d6374c2
commit
cec7351f82
|
@ -28,7 +28,7 @@ class _SpecialButtonState extends State<SpecialButton> with SingleTickerProvider
|
|||
Widget _buildAndroid() {
|
||||
var textStyle;
|
||||
if (widget.useButtonTheme) {
|
||||
textStyle = Theme.of(context).textTheme.button;
|
||||
textStyle = Theme.of(context).textTheme.labelLarge;
|
||||
}
|
||||
|
||||
return Material(
|
||||
|
|
|
@ -4,7 +4,7 @@ import 'package:flutter/cupertino.dart';
|
|||
import 'package:flutter/material.dart';
|
||||
|
||||
TextStyle basicTextStyle(BuildContext context) =>
|
||||
Platform.isIOS ? CupertinoTheme.of(context).textTheme.textStyle : Theme.of(context).textTheme.subtitle1!;
|
||||
Platform.isIOS ? CupertinoTheme.of(context).textTheme.textStyle : Theme.of(context).textTheme.titleMedium!;
|
||||
|
||||
const double _headerFontSize = 13.0;
|
||||
|
||||
|
|
|
@ -31,7 +31,7 @@ class ConfigPageItem extends StatelessWidget {
|
|||
final origTheme = Theme.of(context);
|
||||
theme = origTheme.copyWith(
|
||||
textTheme: origTheme.textTheme
|
||||
.copyWith(button: origTheme.textTheme.button!.copyWith(fontWeight: FontWeight.normal)));
|
||||
.copyWith(labelLarge: origTheme.textTheme.labelLarge!.copyWith(fontWeight: FontWeight.normal)));
|
||||
return Theme(data: theme, child: _buildContent(context));
|
||||
} else {
|
||||
final origTheme = CupertinoTheme.of(context);
|
||||
|
|
Loading…
Reference in New Issue