Skip to content

Commit c6f4e51

Browse files
committed
fix linter issue
1 parent a0dde10 commit c6f4e51

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

packages/diagrams/lib/src/container.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class ContainerDiagram extends StatelessWidget implements DiagramMetadata {
4646
child: Text('Hello World',
4747
style: Theme.of(context)
4848
.textTheme
49-
.headline4!
49+
.headlineMedium!
5050
.copyWith(color: Colors.white)),
5151
),
5252
),

packages/diagrams/lib/src/curve.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ class TranslateSampleTile extends StatelessWidget {
264264
Text(
265265
name,
266266
textAlign: TextAlign.center,
267-
style: Theme.of(context).textTheme.bodyText1!.copyWith(
267+
style: Theme.of(context).textTheme.bodyLarge!.copyWith(
268268
color: Colors.black,
269269
fontSize: 12.0,
270270
),

packages/diagrams/lib/src/implicit_animations.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ class AnimatedDefaultTextStyleDiagram
133133
@override
134134
Widget buildImplicitAnimation(BuildContext context, bool selected) {
135135
final TextStyle selectedStyle =
136-
Theme.of(context).textTheme.headline4!.copyWith(
136+
Theme.of(context).textTheme.headlineMedium!.copyWith(
137137
color: Colors.red,
138138
fontSize: 50.0,
139139
fontWeight: FontWeight.w100,

packages/diagrams/lib/src/theme_data.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ class ThemeDataDiagram extends StatelessWidget implements DiagramMetadata {
6868
secondary: Colors.green,
6969
),
7070
textTheme: const TextTheme(
71-
bodyText2: TextStyle(color: Colors.purple)),
71+
bodyMedium: TextStyle(color: Colors.purple)),
7272
),
7373
home: Stack(
7474
children: <Widget>[

0 commit comments

Comments
 (0)