-
카테고리
-
세부 분야
모바일 앱 개발
-
해결 여부
미해결
ThemeData의 accentColor속성 deprecated
21.12.26 15:30 작성 조회수 826
0
5:14에
accentColor 속성이 이젠 deprecated 돼서 쓸 수 없다고 하는데 어떻게 해야하나요??
답변을 작성해보세요.
0
김재기
2022.02.14
아무리 이렇게 코딩해도 appBar가 흰색으로 안바뀌는데요?? 머가 문제 일까요??
class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
print('MyApp created');
return MaterialApp(
title: 'Flutter Demo',
theme: ThemeData(
primaryColor: Colors.white,
colorScheme: ColorScheme.fromSwatch(primarySwatch: Colors.blue)
.copyWith(secondary: Colors.black),
),
home: const RootPage(),
);
}
}
오준석
지식공유자2022.02.14
HomePage의 Appbar 의 backgroundColor 값을 white로 설정하셨나요?
https://github.com/junsuk5/flutter_insta_clon/blob/null-safety/lib/home_page.dart
답변 2