FLUTTER203 Flutter 플러터에서 다크 모드와 라이트 모드를 구현하는 방법은 무엇인가요?, How to implement Dark mode and Light Mode in flutter? 질문 I want to create a flutter app that has 2 light and dark mode themes that change by a switch in-app and the default theme is default android theme. I need to pass some custom color to the fellow widget and I don't want to just config material theme. how to detect the user device default theme? the secend question is how to provide a theme to the whole app? third is how change the theme with a.. 2023. 6. 12. Flutter 안드로이드 스튜디오에서 플러터 아웃라인은 "표시할 것이 없습니다"라고 표시됩니다., Flutter Outline Shows "Nothing to show" in android studio 질문 나는 Flutter Outline을 통해 위젯을 추출하려고 하지만, Android Studio에서 아래와 같은 문제를 마주하고 있다. Flutter Outline은 "표시할 것이 없음"을 보여줍니다. 실행 후 flutter doctor -v 다음이 표시됩니다: 이 문제를 어떻게 극복할 수 있을까요? 답변 마우스를 위젯 위로 이동하고 Ctrl (또는 macOS에서 ⌘ command)를 누른 다음 해당 위젯을 클릭하세요. 이 단계 이후에는 Flutter Outline이 활성화되어 위젯 트리가 표시됩니다. 2023. 6. 12. Flutter 플러터에서 이미지를 전체 배경에 맞게 (100% 높이 x 100% 너비) 늘리는 방법은 무엇인가요?, How do I stretch an image to fit the whole background (100% height x 100% width) in Flutter? 질문 내 기기의 화면 비율과 일치하지 않는 이미지가 있습니다. 이미지를 화면에 완전히 채우도록 늘이고 이미지의 어떤 부분도 잘라내지 않도록 하려고 합니다. CSS에는 백분율 개념이 있으므로 높이와 너비를 100%로 설정할 수 있습니다. 하지만 Flutter에는 그 개념이 없는 것 같고, 높이와 너비를 하드코딩하는 것은 좋지 않으므로 막혀 있습니다. 다음은 내가 가진 것입니다 (앞쪽에 무언가가 있으므로 Stack을 사용합니다): Widget background = new Container( height: // 여기에 무엇을 넣어야 할지 모릅니다! width: // 여기에 무엇을 넣어야 할지 모릅니다! child: new Image.asset( asset.background, fit: BoxFit.fill,.. 2023. 6. 1. Flutter flutter - minHeight에서 시작하여 maxHeight까지 성장하는 상자를 만드는 올바른 방법, flutter - correct way to create a box that starts at minHeight, grows to maxHeight 질문 나는 사용자가 콘텐츠를 추가하는 동안 콘텐츠가 커지면 최소 크기에서 시작하여 최대 크기까지 성장하고 멈추도록하려는 컨테이너가 있습니다. 이 경우 올바른 위젯은 다음과 같은 ConstrainedBox입니다: new ConstrainedBox( constraints: new BoxConstraints( minHeight: 35.0, maxHeight: 60.0, ), child: ...grow content를 가진 자식(기본 높이 25.0)... ), 그러나이 방법은 박스를 maxHeight에서 시작합니다. hasBoundedHeight를 사용해보려고했지만 올바른 구문을 구성하거나 문서에서 예제를 찾을 수 없습니다. 설명 된대로 상자를 작동하는 가장 좋은 방법은 무엇인가요? 답변 "Starts from.. 2023. 6. 1. 이전 1 ··· 21 22 23 24 25 26 27 ··· 51 다음