본문 바로가기

FLUTTER203

Flutter 투명 배경과 함께 플러터 모서리 반경, flutter corner radius with transparent background 질문 아래는 투명 배경을 가진 라운드 코너 컨테이너를 렌더링할 것으로 예상되는 코드입니다. return new Container( //padding: const EdgeInsets.all(32.0), height: 800.0, //color: const Color(0xffDC1C17), //color: const Color(0xffFFAB91), decoration: new BoxDecoration( color: Colors.green, //new Color.fromRGBO(255, 0, 0, 0.0), borderRadius: new BorderRadius.only( topLeft: const Radius.circular(40.0), topRight: const Radius.circular(40.0)).. 2023. 6. 14.
Flutter - Container onPressed? 플러터 - 컨테이너 onPressed?, Flutter - Container onPressed? 질문 나는 이 컨테이너를 가지고 있습니다: new Container( width: 500.0, padding: new EdgeInsets.fromLTRB(20.0, 40.0, 20.0, 40.0), color: Colors.green, child: new Column( children: [ new Text("Ableitungen"), ] ), ), 사용자가 Container를 클릭하면 IconButton과 같은 방식으로 onPressed() 메서드가 실행되기를 원합니다. Container로 이러한 동작을 어떻게 구현할 수 있을까요? 답변 다음과 같이 GestureDetector 위젯을 사용할 수 있습니다: new GestureDetector( onTap: (){ print("Container clicke.. 2023. 6. 14.
Flutter 플러터 내비게이션 인덱스 1로 팝하기, Flutter Navigation pop to index 1 질문 저는 네비게이터에 재귀적으로 라우트를 추가하고 있습니다. 20개 이상의 뷰가 있을 수 있습니다. 팝은 광고대로 작동하지만, 인덱스 1로 팝하고 모든 푸시 기록을 제거하려면 어떻게 해야 할까요? 이 팝 명령을 returntoIndex0과 같은 것으로 대체할 방법이 있을까요... new ListTile( title: new RaisedButton( child: new Text("POP"), onPressed: () { var route = new MaterialPageRoute( builder: (BuildContext context) => new NextPage3(value:"hi there from 3"), ); Navigator.pop(context); }, ), ), 답변 이름이 지정된 경로를 .. 2023. 6. 14.
Flutter 플러터 앱은 크기가 너무 큽니다., Flutter apps are too big in size 질문 I have good experience in android app development using java. Recently I came to know about flutter. So, I have tried to create a simple android app with flutter based on official tutorial. But surprisingly the debug app size is 25MB and release apk costs more than 7MB. It is really larger when compare with native developed android app. Is there any way to optimize it? 답변 앱 크기에 대한 최소 제한이 있는 것.. 2023. 6. 12.