From 51de15b775723d71e93f9c45c11963f7094f071b Mon Sep 17 00:00:00 2001 From: Prajwal S Belagavi Date: Wed, 29 Apr 2020 05:49:12 +0530 Subject: [PATCH] replaced 'bodyText2' attribute with 'body2' --- lib/presentation/pages/notes/note_form/note_form_page.dart | 2 +- .../notes_overview/widgets/error_note_card_widget.dart | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/presentation/pages/notes/note_form/note_form_page.dart b/lib/presentation/pages/notes/note_form/note_form_page.dart index 9400cf0..7f97dc8 100644 --- a/lib/presentation/pages/notes/note_form/note_form_page.dart +++ b/lib/presentation/pages/notes/note_form/note_form_page.dart @@ -100,7 +100,7 @@ class SavingInProgressOverlay extends StatelessWidget { Text( 'Saving', // Not within a Scaffold. We have to get the TextStyle from a theme ourselves. - style: Theme.of(context).textTheme.bodyText2.copyWith( + style: Theme.of(context).textTheme.body2.copyWith( color: Colors.white, fontSize: 16, ), diff --git a/lib/presentation/pages/notes/notes_overview/widgets/error_note_card_widget.dart b/lib/presentation/pages/notes/notes_overview/widgets/error_note_card_widget.dart index 0a0bad6..3806c0f 100644 --- a/lib/presentation/pages/notes/notes_overview/widgets/error_note_card_widget.dart +++ b/lib/presentation/pages/notes/notes_overview/widgets/error_note_card_widget.dart @@ -22,19 +22,19 @@ class ErrorNoteCard extends StatelessWidget { textAlign: TextAlign.center, style: Theme.of(context) .primaryTextTheme - .bodyText2 + .body2 .copyWith(fontSize: 18), ), const SizedBox(height: 2), Text( 'Details for nerds:', textAlign: TextAlign.center, - style: Theme.of(context).primaryTextTheme.bodyText2, + style: Theme.of(context).primaryTextTheme.body2, ), Text( note.failureOption.fold(() => '', (f) => f.toString()), textAlign: TextAlign.center, - style: Theme.of(context).primaryTextTheme.bodyText2, + style: Theme.of(context).primaryTextTheme.body2, ), ], ),