From 588414b778234f00b7c55adbe98d246ab130f8bf Mon Sep 17 00:00:00 2001 From: Srie Teja Date: Tue, 21 May 2024 23:44:06 +0530 Subject: [PATCH] fix: replace deprecated items with up-to-date ones --- packages/at_common_flutter/example/lib/main.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/at_common_flutter/example/lib/main.dart b/packages/at_common_flutter/example/lib/main.dart index 30952ce7b..e4b3ae7fe 100644 --- a/packages/at_common_flutter/example/lib/main.dart +++ b/packages/at_common_flutter/example/lib/main.dart @@ -25,13 +25,13 @@ class MyApp extends StatelessWidget { theme: ThemeData( brightness: Brightness.light, primaryColor: const Color(0xFFf04924), - backgroundColor: Colors.white, + colorScheme: ThemeData.light().colorScheme.copyWith(surface: Colors.white), ), darkTheme: ThemeData( brightness: Brightness.dark, fontFamily: 'RobotoSlab', primaryColor: const Color(0xFFF05E3E), - backgroundColor: Colors.black, + colorScheme: ThemeData.dark().colorScheme.copyWith(surface: Colors.black), ), themeMode: snapshot.data, title: 'Example App',