Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: replace deprecated elements with equivalent up-to-date items #849

Merged
merged 5 commits into from
May 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading