Created
June 7, 2018 03:19
-
-
Save buntagonalprism/3278121a801d0a8502dba7ac6a38ca9f to your computer and use it in GitHub Desktop.
Individual Flutter Stateful Widget template file for inclusion in Medium article
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#set( $nameparts = $NAME.split("_")) | |
#set( $namepart = '') | |
#set( $classname = '') | |
#foreach( $namepart in $nameparts ) | |
#set( $classname = $classname + $namepart.substring(0, 1).toUpperCase() + $namepart.substring(1)) | |
#end | |
import 'package:flutter/material.dart'; | |
class $classname extends StatefulWidget { | |
@override | |
_${classname}State createState() => new _${classname}State(); | |
} | |
class _${classname}State extends State<$classname> { | |
// TODO: add state variables and methods | |
@override | |
Widget build(BuildContext context) { | |
// TODO: add widget build method | |
return null; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment