싱글톤(Singleton) 클래스 class Singleton { static final Singleton _instance = Singleton._internal(); factory Singleton() { return _instance; } Singleton._internal() { //클래스가 최초 생성될때 1회 발생 //초기화 코드 } } Share this:Click to share on Twitter (Opens in new window)Click to share on Facebook (Opens in new window) Related Posted on 2021-05-18 1:21 AM by andrew Comment 📂This entry was posted in flutter
2021-05-18 andrew 패키지(Package) 수정하기Github에서 고칠 Package를 Fork 한 후에 해당 소스를 고치고 Github에 commit / push 해서 사용함pubspec.yaml에 아래와 같이 기입#qrscan...
2021-05-18 andrew 앱 화면 크기 알아내기(App Screen Size)Js처럼.. MediaQuery 라는걸 사용한다. MediaQuery.of(context).size //앱 화면 크기 size Ex> Size(360.0, 692.0) MediaQ...