Flutter
Google's UI toolkit for building natively-compiled apps from a single Dart codebase — learn the widget model that powers it.
20 pelajaran
Flutter
Mulai KursusGetting Started
Widgets 101
- Composing Widgets TogetherHow small, single-purpose widgets nest inside each other to build up real screens.
- StatelessWidget vs StatefulWidgetThe two base widget classes, what "state" means in Flutter, and how to decide which one a widget needs.
- The Widget Tree and the Build MethodHow Flutter turns your nested widgets into pixels, and why build methods should stay fast and side-effect free.
Layout & Styling
- Layout Basics: Container, Padding, and CenterThe single-child layout widgets you'll reach for constantly to size, space, and position UI.
- Rows and ColumnsArranging multiple widgets horizontally and vertically, and controlling how they share space.
- Text and StylingDisplaying and styling text, and using a theme instead of repeating styles everywhere.
- Images and AssetsBundling local images as assets and loading images from the network, plus handling load states.
Interactivity
- Buttons and Handling TapsThe built-in button widgets, and using GestureDetector when you need custom tap behavior.
- Managing State with setStatePatterns and pitfalls for local widget state — batching updates, avoiding unnecessary rebuilds, and when setState stops being enough.
- ListView and Scrollable ListsDisplaying scrollable content efficiently, and why ListView.builder matters for long lists.
- Forms and Text InputCapturing user input with TextField and TextEditingController, and validating a form before submission.
Navigation & Data
- Navigation and RoutesMoving between screens with Navigator, passing data forward, and returning results back.
- Calling APIs with the http PackageMaking network requests, decoding JSON, and modeling API responses as Dart classes.
- FutureBuilder and Async UIRendering loading, error, and success states directly from a Future, without manual setState bookkeeping.
State Management