Skip to main content

Menu

LEVEL 0
0/5 XP
HomeAboutTopicsPricingMy VaultStats

Categories

πŸ€– Artificial Intelligence
☁️ Cloud and Infrastructure
πŸ’Ύ Data and Databases
πŸ’Ό Professional Skills
🎯 Programming and Development
πŸ”’ Security and Networking
πŸ“š Specialized Topics
HomeAboutTopicsPricingMy VaultStats
LEVEL 0
0/5 XP
GitHub
Β© 2026 CheatGridβ„’. All rights reserved.
Privacy PolicyTerms of UseAboutContact

Flutter Cheat Sheet

Flutter Cheat Sheet

Back to Mobile Development
Updated 2026-04-29
Next Topic: Google Play Console Cheat Sheet

Flutter is Google's open-source UI framework for building natively compiled, cross-platform applications from a single codebase, targeting mobile (iOS, Android), web, desktop, and embedded devices. Powered by the Dart programming language, Flutter uses a reactive widget tree where everything β€” from layout containers to buttons β€” is a widget, enabling composable and declarative UI development. Unlike frameworks that bridge to platform UI components, Flutter renders directly via its Impeller engine (the default on iOS and Android, replacing Skia), delivering pixel-perfect control and 60fps+ performance across all targets. With Dart 3, the language gained records, patterns, and sealed classes β€” features that fundamentally reduce boilerplate and improve type safety. The key insight: widgets are immutable and stateless by default; state changes trigger rebuilds rather than mutations, and BuildContext is your gateway to navigating ancestors (Theme, Navigator, InheritedWidget) without prop drilling.

What This Cheat Sheet Covers

This topic spans 25 focused tables and 200 indexed concepts. Below is a complete table-by-table outline of this topic, spanning foundational concepts through advanced details.

Table 1: Core Widget TypesTable 2: Layout WidgetsTable 3: Constraint and Sizing WidgetsTable 4: Scrollable WidgetsTable 5: Material Design WidgetsTable 6: Cupertino (iOS-Style) WidgetsTable 7: Input WidgetsTable 8: Gesture Detection WidgetsTable 9: Animation WidgetsTable 10: Navigation and RoutingTable 11: State Management PatternsTable 12: Dart Language BasicsTable 13: Dart Classes and OOPTable 14: Dart CollectionsTable 15: Dart Async ProgrammingTable 16: Theme and StylingTable 17: KeysTable 18: Widget Lifecycle (StatefulWidget)Table 19: Package ManagementTable 20: Images and AssetsTable 21: Platform Channels and PluginsTable 22: Performance OptimizationTable 23: Debugging and DevToolsTable 24: TestingTable 25: Material 3 Updates

Table 1: Core Widget Types

WidgetExampleDescription
StatelessWidget
class MyWidget extends StatelessWidget {
Widget build(context) => Text('Hi');
}
β€’ Immutable widget that rebuilds only when parent rebuilds β€” no internal state
β€’ ideal for static UI that depends solely on constructor parameters.
StatefulWidget
class Counter extends StatefulWidget {
@override
_CounterState createState() => _CounterState();
}
β€’ Widget that holds mutable state via a paired State object
β€’ calling setState() triggers rebuild.
State
class _CounterState extends State<Counter> {
int count = 0;
@override Widget build(context) => Text('$count');
}
β€’ Mutable companion to StatefulWidget holding data that persists across rebuilds
β€’ initState(), dispose(), and lifecycle methods live here.

More in Mobile Development

  • Fastlane Cheat Sheet
  • Google Play Console Cheat Sheet
  • .NET MAUI Cross-Platform Framework Cheat Sheet
  • Cross-Platform Mobile UI Component Libraries Cheat Sheet
  • Mobile App Analytics and Crash Reporting Cheat Sheet
  • Mobile App Testing Strategies Cheat Sheet
View all 40 topics in Mobile Development