Jin's Dev Story

[Flutter] 다이얼로그 본문

Web & Android/Flutter

[Flutter] 다이얼로그

woojin._. 2023. 10. 17. 15:36
showDialog(
    context: context,
    builder: (context) {
returnAlertDialog(
        title: Text('내 동네 선택'),
        content: Text('동네는 최소 1개 이상 최대 2개까지 설정할 수 있어요.', style: TextStyle(fontSize: 15, color: Color(0xff606060)),),
        actions: [
          Row(
            mainAxisAlignment: MainAxisAlignment.spaceEvenly,
            children: [
              ElevatedButton(
                onPressed: () {
                  Navigator.push(context,
                      MaterialPageRoute(//동네 선택 페이지로 이동
builder: (context) => tlAddressSearch.TownLifeAddressSearch())
                  );
                },
                style: ElevatedButton.styleFrom(
                    backgroundColor: Color(0xffd7d7d7),
                    minimumSize: Size(100, 40)
                ),
                child: Icon(Icons.add),
              ),
              ElevatedButton(
                onPressed: () {
                  Navigator.push(context,
                      MaterialPageRoute(//동네 선택 페이지로 이동
builder: (context) => tlAddressSearch.TownLifeAddressSearch())
                  );
                },
                style: ElevatedButton.styleFrom(
                    backgroundColor: Color(0xffd7d7d7),
                    minimumSize: Size(100, 40)
                ),
                child: Icon(Icons.add),
              ),
            ],
          )
        ],
      );
    }
);