• 로그인
  • 장바구니에 상품이 없습니다.

home2 게시판 Flutter 게시판 플러터 줄바꿈 문제

플러터 줄바꿈 문제

2 글 보임 - 1 에서 2 까지 (총 2 중에서)
  • 글쓴이
  • #93060

    jay
    참가자
    줄바꿈 문제 입니다.
    
    스크린샷 2023-08-01 173028
    저렇게 옆으로 텍스트가 뚫고 나가버리는데 어떻게 해야 할까요?
    
    class App extends GetView<FoodStatisticsController> {
      const App({super.key});
      Widget infowiget(String title, String value) {
        return Row(
          children: [
            Text(
              title,
              style: TextStyle(fontWeight: FontWeight.bold, fontSize: 15),
            ),
            Text(
              ': $value',
              style: TextStyle(fontSize: 15),
            ),
          ],
        );
      }
      @override
      Widget build(BuildContext context) {
        return Scaffold(
          appBar: AppBar(
            foregroundColor: Colors.orange,
            title: Text(
              '오늘의 급식',
              style: TextStyle(
                  fontSize: 35,
                  fontWeight: FontWeight.w600,
                  fontStyle: FontStyle.italic),
            ),
            centerTitle: true,
          ),
          body: Container(
            width: 300,
            padding: const EdgeInsets.all(15),
            child: Obx(() {
              var info = controller.foodStatistics.value;
              return Column(
                children: [
                  infowiget('급식일자', info.MLSV_YMD!),
                  infowiget('급식 매뉴', info.DDISH_NM!),
                  infowiget('급식칼로리', info.CAL_INFO!),
                ],
              );
            }),
          ),
        );
      }
    }
     
    #93085

    codingapple
    키 마스터
    Container나 Flexible 안에 Text 담아봅시다
2 글 보임 - 1 에서 2 까지 (총 2 중에서)
  • 답변은 로그인 후 가능합니다.

About

현재 월 700명 신규수강중입니다.

  (09:00~20:00) 빠른 상담은 카톡 플러스친구 코딩애플 (링크)
  admin@codingapple.com
  이용약관
ⓒ Codingapple, 강의 예제, 영상 복제 금지
top

© Codingapple, All rights reserved. 슈퍼로켓 에듀케이션 / 서울특별시 강동구 고덕로 19길 30 / 사업자등록번호 : 212-26-14752 온라인 교육학원업 / 통신판매업신고번호 : 제 2017-서울강동-0002 호 / 개인정보관리자 : 박종흠