Skip to content

Commit

Permalink
Merge pull request #849 from atsign-foundation/fix_deprecations_srie
Browse files Browse the repository at this point in the history
fix: replace deprecated elements with equivalent up-to-date items
  • Loading branch information
gkc authored May 23, 2024
2 parents 8e20181 + 550d19e commit 3afc6db
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 13 deletions.
15 changes: 5 additions & 10 deletions packages/at_onboarding_flutter/example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -51,22 +51,17 @@ class _MyAppState extends State<MyApp> {
theme: ThemeData().copyWith(
brightness: Brightness.light,
primaryColor: const Color(0xFFf4533d),
colorScheme: ThemeData.light().colorScheme.copyWith(
primary: const Color(0xFFf4533d),
),
// ignore: deprecated_member_use
backgroundColor: Colors.white,
scaffoldBackgroundColor: Colors.white,
colorScheme: ThemeData.light().colorScheme.copyWith(
primary: const Color(0xFFf4533d), surface: Colors.white),
),
darkTheme: ThemeData().copyWith(
brightness: Brightness.dark,
primaryColor: Colors.blue,
colorScheme: ThemeData.dark().colorScheme.copyWith(
primary: Colors.blue,
),
// ignore: deprecated_member_use
backgroundColor: Colors.grey[850],
scaffoldBackgroundColor: Colors.grey[850],
colorScheme: ThemeData.dark()
.colorScheme
.copyWith(primary: Colors.blue, surface: Colors.grey[850]),
),
locale: _currentLocale,
localizationsDelegates: const [
Expand Down
5 changes: 2 additions & 3 deletions packages/at_onboarding_flutter/example/lib/switch_atsign.dart
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,7 @@ class _AtSignBottomSheetState extends State<AtSignBottomSheet> {
child: Container(
height: 100,
width: screenSize.width,
// ignore: deprecated_member_use
color: Theme.of(context).backgroundColor,
color: Theme.of(context).canvasColor,
child: Row(
children: [
Expanded(
Expand Down Expand Up @@ -101,7 +100,7 @@ class _AtSignBottomSheetState extends State<AtSignBottomSheet> {
Text(
widget.atSignList[index],
// ignore: deprecated_member_use
style: Theme.of(context).textTheme.bodyText1,
style: Theme.of(context).textTheme.bodyMedium,
)
],
),
Expand Down

0 comments on commit 3afc6db

Please sign in to comment.