tareq3
4/23/2020 - 5:21 AM

LiveTamplate

Live Tamplate

Toast:

Text('$text$', style: GoogleFonts.raleway(fontWeight: FontWeight.w500),),

SizedBox

SizedBox(height: $height$),

Text

Text('$text$', style: GoogleFonts.raleway(fontWeight: FontWeight.w500),),

TextField

TextField(
    minLines: 4,
    maxLines: 10,
                                    decoration: InputDecoration(
                                        enabledBorder: OutlineInputBorder(
                                          borderSide: BorderSide(
                                              color: Colors.black12,
                                              width: 1.0),
                                          borderRadius:
                                              BorderRadius.circular(5.0),
                                        ),
                                        focusedErrorBorder: OutlineInputBorder(
                                          borderSide: BorderSide(
                                              color: Colors.redAccent,
                                              width: 1.0),
                                          borderRadius:
                                              BorderRadius.circular(5.0),
                                        ),
                                        focusedBorder: OutlineInputBorder(
                                          borderSide: BorderSide(
                                              color: Styles.mPrimaryColor,
                                              width: 2.0),
                                          borderRadius:
                                              BorderRadius.circular(5.0),
                                        ),
                                        errorBorder: OutlineInputBorder(
                                          borderSide: BorderSide(
                                              color: Colors.black12,
                                              width: 1.0),
                                          borderRadius:
                                              BorderRadius.circular(5.0),
                                        ),
                                        border: OutlineInputBorder(),
                                        hintText:
                                            "$Hint_Text$"),
                                            
                                   controller : $Text_Controller$
                                  ),
                         

OutlineButton

OutlineButton(
  borderSide: BorderSide(
      color: $color$[800].withOpacity(.3)),
  shape: RoundedRectangleBorder(
      borderRadius:
          new BorderRadius.circular(13.0)),
  child: Text(
    "$text$",
    style: GoogleFonts.montserrat(
        fontWeight: FontWeight.w600,
        color: $color$),
  ),
  onPressed: () {
    //Todo: Here Goes your action
  },
),


toJson for JsonSerializable

//$ sign appending 
Map<String, dynamic> toJson() => _$$$className$ToJson(this);

####Note: Don't forget to add env variable: className as DartClassName()

Output: Map<String, dynamic> toJson() => _$UserToJson(this);


From Json Serializable

factory $CLASS_NAME$.fromJson(Map<String, dynamic> json) =>_$$$CLASS_NAME$FromJson(json);


part file generate

part '$ToSnakeCase$.g.dart';

or


class Generate

//file name $FILE_NAME$ created at $time$ by tareq

class $CLASS_NAME${
    
}