Flutter Cheat Sheet

Last Updated: November 21, 2025

Widgets

// Stateless Widget
class MyWidget extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Container(
      child: Text('Hello World'),
    );
  }
}

// Stateful Widget
class Counter extends StatefulWidget {
  @override
  _CounterState createState() => _CounterState();
}

Common Widgets

Container
Box model widget
Row/Column
Layout widgets
Text
Display text
Image
Display images
ListView
Scrollable list
Stack
Overlay widgets

Commands

flutter create app
Create new app
flutter run
Run app
flutter build
Build for production
flutter doctor
Check setup
💡 Pro Tip: Hot reload is Flutter's killer feature!
← Back to Programming Languages | Browse all categories | View all cheat sheets