본문 바로가기
728x90
반응형

Flutter6

'File.create' has fewer named arguments than those of overridden method 'File.create' 에러문구 'File.create' has fewer named arguments than those of overridden method 'File.create' 해결 flutter pub upgrade 2024. 1. 9.
onHighlightChanged RawMaterialButton( onPressed: () => {}, onHighlightChanged: (value) { setState(() { backgroundColor = value ? Colors.amber : Colors.redAccent; _highlight = value; }); }, elevation: _highlight ? 10.0 : 1.0, constraints: BoxConstraints.tightFor( width: 100.0, // double? width height: 100.0 // double? height ), fillColor: backgroundColor, shape: _pentagonBorder(), ) 2024. 1. 7.
ShapeBorder -> pentagon class _pentagonBorder extends ShapeBorder { @override EdgeInsetsGeometry get dimensions => EdgeInsets.only(); @override Path getInnerPath(Rect rect, {TextDirection? textDirection}) { return getOuterPath(rect, textDirection: textDirection!); } @override Path getOuterPath(Rect rect, {TextDirection? textDirection}) { return Path() ..moveTo(rect.left + rect.width / 2.0, rect.top) ..lineTo(rect.right.. 2024. 1. 7.
BoxConstraints.tightFor RawMaterialButton( onPressed: () => {}, constraints: BoxConstraints.tightFor( width: 100.0, // double? width height: 100.0 // double? height ), fillColor: Colors.amber, ) 2024. 1. 7.
안드로이드스튜디오 PlatformException(null-error, Host platform returned null value for non-null return value., null, null) 에러문구 Unhandled Exception: PlatformException(null-error, Host platform returned null value for non-null return value., null, null) 해결 await Firebase.initializeApp(); // 해결전 await Firebase.initializeApp(options: DefaultFirebaseOptions.currentPlatform); // 해결후 2024. 1. 7.
안드로이드 Apps targeting Android 12 and higher 에러 에러 문구 Apps targeting Android 12 and higher are required to specify an explicit value for `android:exported` when the corresponding component has an intent filter defined. 해결 AndroidManifest.xml 에서 android:exported="true" 추가 2024. 1. 1.
728x90
반응형