본문 바로가기

BorderRadius3

Flutter 플러터에서 위젯을 서로 겹쳐서 쌓는 방법은 무엇인가요?, How do I stack widgets overlapping each other in flutter 질문 이렇게 위젯을 쌓아야합니다: 아래의 코드를 작성했습니다. 그러나 동전들이 기본 패딩과 함께 하나씩 나타납니다. 위의 이미지처럼 어떻게 얻을 수 있을까요? Row( children: [ Icon( Icons.monetization_on, size: 36.0, color: const Color.fromRGBO(218, 165, 32, 1.0), ), Icon( Icons.monetization_on, size: 36.0, color: const Color.fromRGBO(218, 165, 32, 1.0), ), ], ), 답변 이를 달성하기 위해 Stack과 Positioned을 사용할 수 있습니다: class StackExample extends StatelessWidget { @override Wi.. 2023. 9. 7.
Flutter 플러터에서 어떻게 둥근 텍스트 필드를 만들 수 있나요?, How can I make rounded TextField in flutter? 질문 Material Design for iOS doesn't look good, especially the TextField. So is there any way to create your own ? Or Is ther any way to add some styling to TextField so it will look rounded ? 답변 당신은 TextField의 decoration 매개 변수 내에서 둥근 모서리를 추가할 수 있습니다. TextField( decoration: InputDecoration( border: OutlineInputBorder( borderRadius: BorderRadius.circular(10.0), ), filled: true, hintStyle: TextStyle.. 2023. 6. 14.
Flutter에서 borderRadius가 있는 Container에 테두리 추가하기, Add border to a Container with borderRadius in Flutter 질문 Container( child: Text( 'This is a Container', textScaleFactor: 2, style: TextStyle(color: Colors.black), ), decoration: BoxDecoration( borderRadius: BorderRadius.circular(10), color: Colors.white, border: Border( left: BorderSide( color: Colors.green, width: 3, ), ), ), height: 50, ), 이것은 녹색 왼쪽 테두리가 있는 둥근 모서리 컨테이너와 "This is a Container"라는 자식 텍스트를 표시해야하지만, 둥근 모서리 컨테이너와 자식 및 왼쪽 테두리가 보이지 않습니다. .. 2023. 5. 31.