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에서 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.