name27 / flutter

0 stars 0 forks source link

2. Drawer #27

Open name27 opened 1 year ago

name27 commented 1 year ago

image

drawer: Drawer(
          child: ListView(
            padding: EdgeInsets.zero,
            children: [
              SizedBox(height: 30),
              ListTile(
                leading: CircleAvatar(
                  backgroundColor: Colors.greenAccent,
                  child: Text('스'),
                ),
                title: Text('스나이퍼팩토리'),
                subtitle: Text('안녕하세요 스펙입니다'),
              ),
              ListTile(
                leading: Icon(Icons.home),
                title: Text('홈'),
                subtitle: Text('홈으로 이동하기'),
              ),
              ListTile(
                leading: Icon(Icons.people),
                title: Text('커뮤니티'),
                subtitle: Text('커뮤니티로 이동하기'),
              ),
              SizedBox(
                height: 350,
              ),
              ListTile(
                title: Text('로그아웃'),
                subtitle: Text('로그아웃입니다'),
                trailing: Icon(Icons.logout),
              ),
            ],
          ),
        ),
name27 commented 1 year ago

image

drawer: Drawer(
          child: ListView(
            padding: EdgeInsets.zero,
            // ignore: prefer_const_literals_to_create_immutables
            children: [
              UserAccountsDrawerHeader(
                  currentAccountPicture: CircleAvatar(
                    //현재 계정 이미지
                    backgroundColor: Colors.blueAccent,
                    child: Text('스'),
                  ),
                  accountName: Text('스나이퍼팩토리'),
                  accountEmail: Text('안녕하세요. 스펙입니다'),
                  onDetailsPressed: () {
                    print('clicked');
                  },
                  decoration: BoxDecoration(
                    color: Colors.greenAccent,
                  ),
                ),
                ListTile(
                  leading: Icon(Icons.home),
                  title: Text('홈'),
                  subtitle: Text('홈으로 이동하기'),
                ),
                ListTile(
                    leading: Icon(Icons.people),
                    title: Text('커뮤니티'),
                    subtitle: Text('커뮤니티로 이동하기'),
                ),
                SizedBox(height: 270,),
                ListTile(
                  title: Text('로그아웃'),
                  subtitle: Text('로그아웃입니다'),
                  trailing: Icon(Icons.logout),
                ),
            ],
          ),
        ),