작성
·
1K
답변 2
0
아무리 이렇게 코딩해도 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(),
);
}
}
HomePage의 Appbar 의 backgroundColor 값을 white로 설정하셨나요?
https://github.com/junsuk5/flutter_insta_clon/blob/null-safety/lib/home_page.dart