Filter by the role you are applying for, open a question, and practise explaining the answer out loud. Mark it practised when you can.
Why they ask this: There is no single right answer; interviewers want reasoning, not a favourite library.
Answer
setState: local state inside one widget. Simple and perfectly fine for small screens.InheritedWidget / ValueNotifier + ValueListenableBuilder: built into Flutter and lightweight.InheritedWidget. Good for simple app-wide state, such as the logged-in user or the theme.BuildContext. Good for async data and testing.How to choose: keep state as local as possible. Pick a shared solution when several screens need the same data. Consider the team's experience, how testable it is, and how much boilerplate you can accept. Be ready to explain one approach in depth with code from a project you built.
Why they ask this: Misusing BuildContext causes common runtime errors, so this tests deeper Flutter knowledge.
Answer
A BuildContext is a handle to a widget's location in the widget tree (it is actually the widget's Element). It is used to look up the tree for inherited data and services:
final theme = Theme.of(context);
final size = MediaQuery.sizeOf(context);
Navigator.of(context).push(MaterialPageRoute(builder: (_) => const JobScreen()));
ScaffoldMessenger.of(context).showSnackBar(const SnackBar(content: Text('Saved')));Common pitfalls:
Scaffold.of(context) fails if context belongs to a widget above the Scaffold. Wrap the child in a Builder to get a context below it.await, the widget may have been removed. Check if (!context.mounted) return; before using the context again.Why they ask this: Networking, databases and real-time features in Flutter depend on async Dart.
Answer
Why they ask this: Offline support and secure token storage come up in nearly every mobile project.
Answer
Why they ask this: Shows practical debugging experience beyond building happy-path screens.
Answer
Future<T> delivers one value (or an error) later, such as an HTTP response. Use it with async/await or FutureBuilder.Stream<T> delivers many values over time, such as location updates, Firestore snapshots, WebSocket messages or user input. Use it with await for, listen() or StreamBuilder.Future<List<Job>> fetchJobs() async {
final res = await http.get(Uri.parse('https://api.example.com/jobs'));
if (res.statusCode != 200) throw Exception('Failed: ${res.statusCode}');
return (jsonDecode(res.body) as List).map((j) => Job.fromJson(j)).toList();
}
Stream<int> countdown(int from) async* {
for (var i = from; i >= 0; i--) {
await Future.delayed(const Duration(seconds: 1));
yield i;
}
}Always cancel stream subscriptions in dispose() to avoid memory leaks.
Choose storage by what you are saving:
@react-native-async-storage/async-storage): simple, unencrypted key-value storage for small, non-sensitive data such as settings or onboarding flags.react-native-mmkv): a much faster key-value store, also synchronous.expo-secure-store or react-native-keychain, which use the iOS Keychain and the Android Keystore.expo-sqlite), WatermelonDB or Realm.import * as SecureStore from 'expo-secure-store';
await SecureStore.setItemAsync('auth_token', token);
const saved = await SecureStore.getItemAsync('auth_token');Never put access tokens in AsyncStorage, and never ship API secrets inside the app bundle, because the bundle can be unpacked.
Measure first:
Common fixes:
FlatList (or FlashList) with stable keys instead of mapping long arrays in a ScrollView.React.memo, useCallback and useMemo, and keep state close to where it is used.expo-image.useNativeDriver: true.console.log calls from release builds.