1
0
mirror of https://github.com/flutter/samples.git synced 2025-11-08 13:58:47 +00:00

Update for Material changes & run rebuild scripts (#1412)

This commit is contained in:
Brett Morgan
2022-09-01 11:01:17 +10:00
committed by GitHub
parent 83f7059d83
commit 9d8aa333ee
167 changed files with 928 additions and 1061 deletions

View File

@@ -96,8 +96,8 @@ class _NavViewState extends State<_NavView> {
appBar: AppBar(
title: Text(
'Flutter Linting Tool',
style: textTheme.subtitle2!.copyWith(
color: textTheme.bodyText1!.color,
style: textTheme.titleSmall!.copyWith(
color: textTheme.bodyLarge!.color,
),
),
toolbarHeight: 38.0,
@@ -218,7 +218,7 @@ class _NavigationRailHeader extends StatelessWidget {
opacity: animation.value,
child: Text(
'Linting Tool',
style: textTheme.bodyText1!.copyWith(
style: textTheme.bodyLarge!.copyWith(
color: AppColors.white50,
),
),
@@ -298,7 +298,7 @@ class _NavigationRailTrailingSection extends StatelessWidget {
const SizedBox(width: 24),
Text(
item,
style: textTheme.bodyText1!.copyWith(
style: textTheme.bodyLarge!.copyWith(
color: navigationRailTheme
.unselectedLabelTextStyle!.color,
),

View File

@@ -38,13 +38,13 @@ class _LintExpansionTileState extends State<LintExpansionTile> {
collapsedBackgroundColor: AppColors.white50,
title: Text(
rule.name,
style: textTheme.subtitle1!.copyWith(
style: textTheme.titleMedium!.copyWith(
fontWeight: FontWeight.w700,
),
),
subtitle: Text(
rule.description,
style: textTheme.caption!,
style: textTheme.bodySmall!,
),
initiallyExpanded: isExpanded,
onExpansionChanged: (value) {
@@ -66,7 +66,7 @@ class _LintExpansionTileState extends State<LintExpansionTile> {
children: [
TextSpan(
text: 'Group:',
style: textTheme.subtitle2,
style: textTheme.titleSmall,
),
TextSpan(
text: ' ${rule.group}',
@@ -80,7 +80,7 @@ class _LintExpansionTileState extends State<LintExpansionTile> {
children: [
TextSpan(
text: 'Maturity:',
style: textTheme.subtitle2,
style: textTheme.titleSmall,
),
TextSpan(
text: ' ${rule.maturity}',
@@ -94,7 +94,7 @@ class _LintExpansionTileState extends State<LintExpansionTile> {
children: [
TextSpan(
text: 'Incompatible:',
style: textTheme.subtitle2,
style: textTheme.titleSmall,
),
TextSpan(
text: ' $incompatibleString',
@@ -108,7 +108,7 @@ class _LintExpansionTileState extends State<LintExpansionTile> {
children: [
TextSpan(
text: 'Sets:',
style: textTheme.subtitle2,
style: textTheme.titleSmall,
),
TextSpan(
text: ' $setsString',

View File

@@ -60,13 +60,13 @@ class _SavedRuleTileState extends State<SavedRuleTile> {
: null,
title: Text(
rule.name,
style: textTheme.subtitle1!.copyWith(
style: textTheme.titleMedium!.copyWith(
fontWeight: FontWeight.w700,
),
),
subtitle: Text(
rule.description,
style: textTheme.caption!,
style: textTheme.bodySmall!,
),
initiallyExpanded: isExpanded,
onExpansionChanged: (value) {
@@ -88,7 +88,7 @@ class _SavedRuleTileState extends State<SavedRuleTile> {
children: [
TextSpan(
text: 'Group:',
style: textTheme.subtitle2,
style: textTheme.titleSmall,
),
TextSpan(
text: ' ${rule.group}',
@@ -102,7 +102,7 @@ class _SavedRuleTileState extends State<SavedRuleTile> {
children: [
TextSpan(
text: 'Maturity:',
style: textTheme.subtitle2,
style: textTheme.titleSmall,
),
TextSpan(
text: ' ${rule.maturity}',
@@ -116,7 +116,7 @@ class _SavedRuleTileState extends State<SavedRuleTile> {
children: [
TextSpan(
text: 'Incompatible:',
style: textTheme.subtitle2,
style: textTheme.titleSmall,
),
TextSpan(
text: ' $incompatibleString',
@@ -130,7 +130,7 @@ class _SavedRuleTileState extends State<SavedRuleTile> {
children: [
TextSpan(
text: 'Sets:',
style: textTheme.subtitle2,
style: textTheme.titleSmall,
),
TextSpan(
text: ' $setsString',