Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save buntagonalprism/a00b0bbfe3d1590ac0248cf73020c785 to your computer and use it in GitHub Desktop.
Save buntagonalprism/a00b0bbfe3d1590ac0248cf73020c785 to your computer and use it in GitHub Desktop.
Individual Flutter Stateless Widget template file for inclusion in Medium article
#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 StatelessWidget {
// TODO: add state variables, methods and constructor params
$classname();
@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