작성
·
355
·
수정됨
0
color.dart에
import 'package:flutter/material.dart';
const Color PRIMARY_COLOR = Color(0xFF2D2D33);
const Color RED_COLOR = Color(0xFFEA4955);
const Color BLUE_COLOR = Color(0xFF549FBF);
한 뒤에
return Scaffold(
backgroundColor: PRIMARY_COLOR,
body: SafeArea(
라고 backgroundColor: PRIMARY_COLOR,
넣자마자 오류가 납니다..
자동완성도 당연히 안되고요.
아무리 봐도 똑같이 했는데 이유를 모르겠어서요ㅜ
Performing hot restart...
Syncing files to device SM G991N...
lib/screen/home_screen.dart:14:24: Error: The getter 'PRIMARY_COLOR' isn't defined for the class '_HomeScreenState'.
- '_HomeScreenState' is from 'package:random_number/screen/home_screen.dart' ('lib/screen/home_screen.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'PRIMARY_COLOR'.
backgroundColor: PRIMARY_COLOR,
^^^^^^^^^^^^^
Restarted application in 561ms.