Togetor


TGTButton class

TGTButton(
    child: const Icon(
        Icons.add,
        color: Colors.white,
        size: 30.0,
    ),
    onPressed: () {
        print("button add");
    },
),

Constructors

  const TGTButton({
    Key? key,
    required this.child,
    required this.onPressed,
    this.width = 50.0,
    this.height = 50.0,
    this.borderRadius = 80.0,
    this.color,
  }) : super(key: key);

Properties

child → Widget
The primary content of the TGTButton.
final

onPressed → voidCallback
The callback that is called when the button is tapped or otherwise activated.
final

width → Double?
final

height → Double?
final

borderRadius → Double?
final

color → Color?
final

borderRadius → Double?
final


TGTTopBar class


        leading: IconButton(
            icon:Icon(Icons.arrow_left_rounded),
            onPressed: (){
              print('gotoback(navigation위젯');
            }
            ),

        endDrawer : Drawer(
          child : ListView(
            padding : EdgeInsets.zero,
            children: <Widget>[
              DrawerHeader(
                child:Text('Drawer'),
                decoration: BoxDecoration(
                  color:Colors.blue,),
              ),
            ],
          )
      )

Constructors

  TGTtop_bar({
    Key? key,
    required this.title,
    required this.onPressed,
  }) : super(key: key);

Properties

onPressed→ voidCallBack

The callback that is called when the button is tapped or otherwise activated.

final

child → Widget

The primary content of the TGTTopBar.

final

title

var


flutter_naver

  Map<String, dynamic> toJson() =>
      {
        'nickname': nickname,
        'id': id,
        'email': email,
        'age': age,
        'gender': gender,
      };

  NaverAccountResult.fromJson(Map<String, dynamic> json)
      : nickname = json['nickname'],
        id = json['id'],
        name = json['name'],
        email = json['email'],
        gender = json['gender'],
        age = json['age'],
        birthday = json['birthday'],
        profileImage = json['profileImage'];

NaverAccountResult 클래스에 추가해주세요.