Replace deprecated theme properties

This commit is contained in:
Ian VanSchooten 2024-08-28 15:08:00 -04:00
parent f25d6374c2
commit cec7351f82
3 changed files with 3 additions and 3 deletions

View File

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

View File

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

View File

@ -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);