Flutter State Management and Networking Lecture Notes

0.0(0)
Studied by 0 people
call kaiCall Kai
Locked
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/27

flashcard set

Earn XP

Description and Tags

Vocabulary flashcards covering Flutter widgets, lifecycle methods, state management concepts (Provider), asynchronous programming, and REST/JSON API integration.

Last updated 3:38 PM on 8/16/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

28 Terms

1
New cards

Stateless Widget

The simplest building blocks in Flutter that do not hold any state, meaning their appearance remains constant throughout their lifetime.

2
New cards

Stateful Widget

Widgets that can maintain and modify their state over time, allowing for dynamic UI updates based on user interactions, data changes, or events.

3
New cards

createState()

A method called when a Stateful Widget is first inserted into the widget tree; it returns a State object which holds the mutable state.

4
New cards

initState()

Called immediately after createState(), this method is used for initial setup like initializing variables and is called only once during the widget's lifetime.

5
New cards

didChangeDependencies()

Called after initState() and whenever the dependencies of the widget change, such as when an InheritedWidget or locale changes.

6
New cards

build()

A method called to construct the widget's UI every time the state changes or the widget is rebuilt.

7
New cards

dispose()

The method called when a widget is permanently removed from the tree; it is the final opportunity to release resources like timers or subscriptions.

8
New cards

RestorationManager

A class in the services library that provides state data to the engine to ensure the app is ready for restoration if the OS kills it while in the background.

9
New cards

Ephemeral State

Also called short-term or UI state, it is local to a specific widget (e.g., text in a field or current tab) and typically managed using setState.

10
New cards

App State

State shared across multiple widgets or the entire application, such as user preferences or a shopping cart, requiring solutions like Provider or BLoC.

11
New cards

TransactionTooLargeException

An error in native code on Android that occurs if the instance state exceeds 1MB1\,MB.

12
New cards

Declarative UI

The perspective that Flutter builds its user interface to reflect the current state, often involves rebuilding parts of the UI from scratch.

13
New cards

Lifting state up

The practice of keeping state above the widgets that use it, because in declarative frameworks, changing a child widget requires rebuilding it from its parent.

14
New cards

provider

A package that works with low-level widgets like InheritedWidget to provide a simpler way to manage and share state throughout the app.

15
New cards

ChangeNotifier

A simple class in the Flutter SDK that provides change notification to listeners via the notifyListeners() method.

16
New cards

ChangeNotifierProvider

The widget that provides an instance of a ChangeNotifier to its descendants and automatically calls dispose() when the instance is no longer needed.

17
New cards

Consumer

A widget that accesses a provided model and triggers its builder function whenever notifyListeners() is called in that model.

18
New cards

Provider.of

A method to access a model without using Consumer; setting the listen parameter to false prevents the widget from rebuilding when the model changes.

19
New cards

Back-end

The programming side of an application that handles APIs, database management, server-side logic, and security which users do not directly see.

20
New cards

Asynchronous Programming

A coding style where tasks can start without waiting for previous ones to complete, characterized by being non-blocking and event-driven.

21
New cards

Future

An object representing a computation that will eventually produce a value or an error in the future without blocking the main thread.

22
New cards

async

A keyword marking a function as asynchronous, indicating it returns a Future and allows the use of the await keyword.

23
New cards

await

A keyword that pauses the execution of an async function until a Future completes, returning the result of that operation.

24
New cards

FutureBuilder

A widget that builds its UI based on the latest snapshot of interaction with a Future, handling waiting, error, and completed states.

25
New cards

API

An interface for Machine-Machine communication that acts as a middleman for data exchange between different software applications.

26
New cards

REST

Representational State Transfer; an architectural style for distributed systems characterized by constraints like Client-Server, Stateless, and Uniform Interface.

27
New cards

HTTP package

A tool in Flutter for making web requests (GET, POST, PUT, DELETE) that integrates with asynchronous programming models.

28
New cards

JSON

JavaScript Object Notation; a text-based, language-independent data interchange format that is lighter and faster than XML.