Skip to content

Instantly share code, notes, and snippets.

@adityapatnaik
Last active August 30, 2019 13:27
Show Gist options
  • Save adityapatnaik/2e463147b918e289efcc97c05a8cfe6b to your computer and use it in GitHub Desktop.
Save adityapatnaik/2e463147b918e289efcc97c05a8cfe6b to your computer and use it in GitHub Desktop.
Statefull Widget
class BlueCar extends StatefulWidget {
const BlueCar({ Key key, @required child }) : super(key: key); // Constructor
@override
_BlueCarState createState() => _BlueCarState();
}
class _BlueCarState extends State<BlueCar> {
@override
Widget build(BuildContext context) {
return Container(
color: const Color(0xFFFFE306),
child: Container(
child: Container(
//child: Container()
)
)
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment