Flutter Interview Questions 2026: 30 Questions That Nepali IT Companies Actually Ask

Landing a Flutter developer job in Nepal requires more than knowing how to build a basic app. Companies like Leapfrog Technology, Cotiviti Nepal, Fusemachines, Deerwalk, and dozens of growing startups in Kathmandu and Pokhara ask specific technical questions designed to separate tutorial-followers from real developers. If you are preparing for a Flutter interview in Nepal, you need to know what actually gets asked — not generic lists copied from international blogs.
This guide covers 30 real Flutter interview questions organized by difficulty, complete with code examples and answers tailored to how Nepali IT companies evaluate candidates. Whether you are targeting a junior role at NPR 25,000/month or a senior position at NPR 80,000+, these questions will prepare you for what is ahead.
Pillar Page: Flutter App Development Course at Swift Academy
What Basic Flutter and Dart Questions Do Nepali Companies Ask First?
Nepali IT companies almost always start with Dart fundamentals and Flutter widget basics to check if candidates understand the language and framework foundation before moving to architecture questions. Here are the most common starter questions:
Q1: What is the difference between final and const in Dart?
Both prevent reassignment, but they work differently:
// final: runtime constant - value assigned once, can be determined at runtime
final DateTime now = DateTime.now(); // OK - value set at runtime
// const: compile-time constant - value must be known at compile time
const double pi = 3.14159; // OK - value known at compile time
// const DateTime now = DateTime.now(); // ERROR - not a compile-time constant
Follow-up tip: Nepali interviewers often ask you to give a real-world example. Say: "I use final for API response data that won't change once fetched, and const for widget trees that never rebuild."
Q2: What is the difference between StatelessWidget and StatefulWidget?
// StatelessWidget - immutable, no internal state
class GreetingCard extends StatelessWidget {
final String name;
const GreetingCard({required this.name});
@override
Widget build(BuildContext context) {
return Text('Namaste, $name!');
}
}
// StatefulWidget - mutable, manages internal state
class LikeButton extends StatefulWidget {
@override
_LikeButtonState createState() => _LikeButtonState();
}
class _LikeButtonState extends State<LikeButton> {
bool isLiked = false;
@override
Widget build(BuildContext context) {
return IconButton(
icon: Icon(isLiked ? Icons.favorite : Icons.favorite_border),
onPressed: () => setState(() => isLiked = !isLiked),
);
}
}
Q3: What is a Widget Tree in Flutter?
A Widget Tree is the hierarchical structure of widgets that Flutter uses to build the UI. Every Flutter app starts with a root widget (usually MaterialApp), and every visual element is a widget nested inside other widgets.
Q4: Explain the BuildContext in Flutter.
BuildContext is a reference to the location of a widget in the widget tree. It allows widgets to find their ancestors, access inherited widgets (like Theme.of(context)), and navigate between screens.
Q5: What are the different types of constructors in Dart?
class User {
String name;
int age;
// Default constructor
User(this.name, this.age);
// Named constructor
User.guest() : name = 'Guest', age = 0;
// Factory constructor
factory User.fromJson(Map<String, dynamic> json) {
return User(json['name'], json['age']);
}
}
What State Management Questions Are Most Common in Nepal Interviews?
State management is the single most asked topic in Flutter interviews at Nepali companies because most real projects require predictable state handling, and interviewers want to see you have built something beyond basic tutorials. Expect 3-5 questions on this topic alone.
Q6: Compare setState, Provider, Riverpod, and BLoC.
| Feature | setState | Provider | Riverpod | BLoC |
|---|---|---|---|---|
| Complexity | Low | Medium | Medium | High |
| Scalability | Small apps | Medium apps | Large apps | Large apps |
| Testability | Hard | Medium | High | High |
| Boilerplate | Minimal | Low | Low | High |
| Popular in Nepal | Beginners | Most common | Growing | Enterprise |
| Learning Curve | Easy | Easy | Moderate | Steep |
Q7: Write a simple Provider example.
// 1. Create a ChangeNotifier
class CartProvider extends ChangeNotifier {
final List<String> _items = [];
List<String> get items => _items;
void addItem(String item) {
_items.add(item);
notifyListeners(); // This triggers UI rebuild
}
int get itemCount => _items.length;
}
// 2. Wrap app with ChangeNotifierProvider
void main() {
runApp(
ChangeNotifierProvider(
create: (_) => CartProvider(),
child: MyApp(),
),
);
}
// 3. Consume in widget
class CartIcon extends StatelessWidget {
@override
Widget build(BuildContext context) {
final cart = context.watch<CartProvider>();
return Badge(
label: Text('${cart.itemCount}'),
child: Icon(Icons.shopping_cart),
);
}
}
Q8: What is the difference between context.watch and context.read in Provider?
context.watch<T>()— Listens for changes and rebuilds the widget when the value changes. Use in thebuildmethod.context.read<T>()— Reads the value once without listening. Use in callbacks likeonPressed.
// CORRECT usage
Widget build(BuildContext context) {
final count = context.watch<Counter>().value; // Rebuilds on change
return ElevatedButton(
onPressed: () => context.read<Counter>().increment(), // One-time read
child: Text('Count: $count'),
);
}
Q9: Explain BLoC pattern with an example.
// Event
abstract class AuthEvent {}
class LoginRequested extends AuthEvent {
final String email, password;
LoginRequested(this.email, this.password);
}
// State
abstract class AuthState {}
class AuthInitial extends AuthState {}
class AuthLoading extends AuthState {}
class AuthSuccess extends AuthState {
final User user;
AuthSuccess(this.user);
}
class AuthFailure extends AuthState {
final String message;
AuthFailure(this.message);
}
// BLoC
class AuthBloc extends Bloc<AuthEvent, AuthState> {
AuthBloc() : super(AuthInitial()) {
on<LoginRequested>((event, emit) async {
emit(AuthLoading());
try {
final user = await authRepository.login(event.email, event.password);
emit(AuthSuccess(user));
} catch (e) {
emit(AuthFailure(e.toString()));
}
});
}
}
What API and Networking Questions Should I Prepare For?
Nepali companies building client projects (especially for international clients through outsourcing) test API integration heavily because almost every real Flutter app connects to a backend — REST APIs with JSON parsing are the minimum expectation. Here are the key questions:
Q10: How do you make an API call in Flutter?
import 'package:http/http.dart' as http;
import 'dart:convert';
class ApiService {
static const String baseUrl = 'https://api.example.com';
Future<List<Product>> fetchProducts() async {
final response = await http.get(
Uri.parse('$baseUrl/products'),
headers: {'Authorization': 'Bearer $token'},
);
if (response.statusCode == 200) {
final List<dynamic> data = json.decode(response.body);
return data.map((json) => Product.fromJson(json)).toList();
} else {
throw Exception('Failed to load products: ${response.statusCode}');
}
}
}
Q11: How do you handle JSON serialization?
class Product {
final int id;
final String name;
final double price;
Product({required this.id, required this.name, required this.price});
// Manual deserialization
factory Product.fromJson(Map<String, dynamic> json) {
return Product(
id: json['id'],
name: json['name'],
price: (json['price'] as num).toDouble(),
);
}
// Manual serialization
Map<String, dynamic> toJson() {
return {'id': id, 'name': name, 'price': price};
}
}
Follow-up: Interviewers may ask about json_serializable package for code generation in larger projects.
Q12: How do you handle errors in API calls?
Wrap calls in try-catch, check status codes, handle timeout, and show user-friendly messages. Many Nepali companies also ask about retry logic and offline handling.
Q13: What is Dio and why would you use it over http package?
Dio provides interceptors, request cancellation, FormData support, timeout configuration, and automatic JSON transformation. Most production Flutter apps in Nepal use Dio for its flexibility.
What Navigation and Routing Questions Come Up in Interviews?
Flutter navigation questions test whether you understand both imperative (Navigator 1.0) and declarative (Navigator 2.0/GoRouter) approaches, and Nepali interviewers especially check if you can handle deep linking and nested navigation. Expect at least 2 questions here.
Q14: Explain Navigator 1.0 vs Navigator 2.0.
| Aspect | Navigator 1.0 | Navigator 2.0 / GoRouter |
|---|---|---|
| Style | Imperative (push/pop) | Declarative (URL-based) |
| Deep Linking | Manual setup | Built-in |
| Web Support | Limited | Full |
| Complexity | Simple | More setup |
| Use Case | Small apps | Production apps |
Q15: How do you pass data between screens?
// Method 1: Constructor parameters
Navigator.push(
context,
MaterialPageRoute(
builder: (context) => DetailScreen(productId: 42),
),
);
// Method 2: Named routes with arguments
Navigator.pushNamed(context, '/detail', arguments: {'id': 42});
// Receiving in DetailScreen:
final args = ModalRoute.of(context)!.settings.arguments as Map;
// Method 3: GoRouter with path parameters
GoRoute(
path: '/product/:id',
builder: (context, state) {
final id = state.pathParameters['id']!;
return ProductDetailScreen(id: id);
},
),
Q16: How do you implement named routes?
MaterialApp(
initialRoute: '/',
routes: {
'/': (context) => HomeScreen(),
'/login': (context) => LoginScreen(),
'/profile': (context) => ProfileScreen(),
'/product': (context) => ProductScreen(),
},
);
What Architecture and Design Pattern Questions Do Senior Roles Require?
For mid-level and senior Flutter positions in Nepal (NPR 50,000-100,000+ salary range), companies like Leapfrog, Cotiviti, and international remote positions test clean architecture knowledge, SOLID principles, and the ability to structure scalable codebases. These questions separate juniors from seniors.
Q17: Explain Clean Architecture in Flutter.
Clean Architecture divides the app into three layers:
- Presentation Layer — Widgets, BLoCs/Controllers, UI logic
- Domain Layer — Entities, Use Cases, Repository interfaces (pure Dart, no Flutter dependency)
- Data Layer — Repository implementations, Data Sources, Models
lib/
├── core/
│ ├── errors/
│ ├── network/
│ └── utils/
├── features/
│ └── auth/
│ ├── data/
│ │ ├── datasources/
│ │ ├── models/
│ │ └── repositories/
│ ├── domain/
│ │ ├── entities/
│ │ ├── repositories/
│ │ └── usecases/
│ └── presentation/
│ ├── bloc/
│ ├── pages/
│ └── widgets/
Q18: What are SOLID principles? Give Flutter examples.
- Single Responsibility: Each widget/class does one thing
- Open/Closed: Extend behavior without modifying existing code
- Liskov Substitution: Subtypes must be substitutable for base types
- Interface Segregation: Small, focused abstract classes
- Dependency Inversion: Depend on abstractions, not implementations
// Dependency Inversion Example
// Abstract repository (domain layer)
abstract class AuthRepository {
Future<User> login(String email, String password);
}
// Concrete implementation (data layer)
class AuthRepositoryImpl implements AuthRepository {
final ApiClient apiClient;
AuthRepositoryImpl(this.apiClient);
@override
Future<User> login(String email, String password) async {
final response = await apiClient.post('/login', {'email': email, 'password': password});
return User.fromJson(response.data);
}
}
Q19: What is Dependency Injection in Flutter?
DI provides dependencies from outside rather than creating them inside a class. In Flutter, packages like get_it or injectable are commonly used.
// Using get_it
final getIt = GetIt.instance;
void setupDI() {
getIt.registerLazySingleton<AuthRepository>(() => AuthRepositoryImpl(getIt()));
getIt.registerFactory<AuthBloc>(() => AuthBloc(getIt()));
}
What Testing and Performance Questions Are Asked?
Testing questions are increasingly common in Nepal's IT hiring because companies working with international clients must maintain code quality — expect questions on unit testing, widget testing, and performance optimization. Even junior roles may get one testing question.
Q20: How do you write a unit test in Flutter?
import 'package:flutter_test/flutter_test.dart';
class Calculator {
int add(int a, int b) => a + b;
int multiply(int a, int b) => a * b;
}
void main() {
late Calculator calculator;
setUp(() {
calculator = Calculator();
});
group('Calculator', () {
test('should add two numbers correctly', () {
expect(calculator.add(2, 3), equals(5));
});
test('should multiply two numbers correctly', () {
expect(calculator.multiply(4, 5), equals(20));
});
});
}
Q21: How do you write a Widget test?
import 'package:flutter_test/flutter_test.dart';
import 'package:flutter/material.dart';
void main() {
testWidgets('Counter increments on tap', (WidgetTester tester) async {
await tester.pumpWidget(MaterialApp(home: CounterPage()));
expect(find.text('0'), findsOneWidget);
expect(find.text('1'), findsNothing);
await tester.tap(find.byIcon(Icons.add));
await tester.pump();
expect(find.text('1'), findsOneWidget);
});
}
Q22: How do you optimize Flutter app performance?
Key optimizations include:
- Use
constconstructors wherever possible - Avoid rebuilding entire widget trees (use selective state management)
- Use
ListView.builderinstead ofListViewfor long lists - Cache images with
CachedNetworkImage - Minimize
setStatescope - Use
RepaintBoundaryfor complex animations
What Platform-Specific and Advanced Questions Complete the Interview?
Advanced questions about platform channels, local storage, and Firebase integration are common for mid-to-senior roles because Nepali companies need developers who can handle the full spectrum of mobile development, not just UI building. Here are the final critical questions:
Q23: How do you implement local storage in Flutter?
// Using shared_preferences for simple key-value storage
import 'package:shared_preferences/shared_preferences.dart';
class LocalStorage {
Future<void> saveToken(String token) async {
final prefs = await SharedPreferences.getInstance();
await prefs.setString('auth_token', token);
}
Future<String?> getToken() async {
final prefs = await SharedPreferences.getInstance();
return prefs.getString('auth_token');
}
}
// For complex data, use sqflite or Hive
// Hive is popular in Nepal's Flutter community for its speed
Q24: What are Platform Channels?
Platform Channels allow Flutter to communicate with native Android (Kotlin/Java) and iOS (Swift/Objective-C) code for platform-specific functionality like accessing sensors, Bluetooth, or native APIs.
Q25-Q30: Rapid-Fire Questions Often Asked
| # | Question | Key Answer |
|---|---|---|
| 25 | Hot Reload vs Hot Restart? | Hot Reload preserves state; Hot Restart resets it |
| 26 | What is a Future vs Stream? | Future = single async value; Stream = sequence of async values |
| 27 | Explain async/await in Dart | Syntactic sugar for handling Futures without .then() chains |
| 28 | What is a GlobalKey? | Unique identifier for widgets across the tree, used for form validation |
| 29 | MediaQuery vs LayoutBuilder? | MediaQuery = screen info; LayoutBuilder = parent constraints |
| 30 | What is tree shaking? | Compiler removes unused code to reduce app size |
What Does Reddit Say About Flutter Interviews in Nepal?
The Flutter and Nepal tech communities on Reddit offer practical perspectives:
-
r/FlutterDev — "Most interviewers in South Asian companies focus heavily on state management and API integration. If you can explain BLoC or Riverpod clearly and write clean async code, you'll stand out." (2025 thread)
-
r/Nepal — "IT companies in Kathmandu care more about your GitHub projects than your certificate. Build 2-3 real apps and push them to GitHub before applying." (2025 career advice thread)
-
r/dartlang — "The Dart language questions in interviews are usually about null safety, generics, and mixins. Don't skip these thinking Flutter widgets are all that matters."
-
r/cscareerquestions — "For Flutter roles in outsourcing companies, expect system design questions too — how would you architect a food delivery app, for example."
The consensus is clear: Nepali companies value practical building experience and clean code over theoretical knowledge alone.
Practical Takeaway: Your Flutter Interview Preparation Checklist
Here is a week-by-week preparation plan for Flutter interviews in Nepal:
Week 1: Dart Fundamentals
- Null safety, generics, mixins, extension methods
- Async programming (Future, Stream, async/await)
- Practice on DartPad daily
Week 2: Flutter Core
- Widget lifecycle, keys, BuildContext
- Layouts (Row, Column, Stack, ListView)
- Navigation and routing
Week 3: State Management
- Master at least one (Provider or Riverpod recommended)
- Understand BLoC conceptually
- Build a todo app with your chosen state management
Week 4: Advanced Topics
- API integration with Dio
- Local storage (Hive/SharedPreferences)
- Testing basics (unit + widget tests)
- Clean architecture folder structure
Interview Day Tips:
- Bring a laptop with your projects ready to demo
- Be honest about what you don't know
- Ask questions about their tech stack and team size
- Negotiate salary based on market research (check our Flutter Developer Salary in Nepal article)
Frequently Asked Questions
What salary can I expect as a Flutter developer in Nepal in 2026?
Junior Flutter developers earn NPR 20,000-35,000/month in Kathmandu. Mid-level developers earn NPR 40,000-70,000. Senior developers and team leads can earn NPR 80,000-150,000+. Remote positions for international companies can pay $800-2,500/month. Pokhara-based roles typically offer 10-20% less than Kathmandu.
Do I need a computer science degree to get a Flutter job in Nepal?
No. Many Nepali IT companies now hire based on skills and portfolio rather than degrees. A strong GitHub profile with 3-5 real Flutter projects, a good understanding of fundamentals, and the ability to solve problems during technical interviews matter more than a degree from Tribhuvan University or Pokhara University.
How long does it take to prepare for a Flutter interview?
If you already know Dart basics, focused preparation of 4-6 weeks (3-4 hours daily) covering the topics in this article should prepare you well. If starting from scratch, take a structured Flutter course first — Swift Academy's 3-month Flutter course covers all interview topics with hands-on projects.
Which companies in Nepal hire Flutter developers?
Major hirers include Leapfrog Technology, Cotiviti Nepal, Fusemachines, Deerwalk, Verisk Nepal, and dozens of startups. Outsourcing companies like Bottle Technology, Jeeny Solutions, and Softnep also hire Flutter developers. Remote opportunities on Upwork, Toptal, and LinkedIn are increasingly popular among Nepali developers.
What portfolio projects should I build for Flutter interviews?
Build at least three projects: (1) A CRUD app with API integration (e-commerce or task manager), (2) A real-time app using Firebase or WebSockets (chat app), and (3) A polished UI clone of a popular app (shows design skills). Push all code to GitHub with clear README files.
Start Your Flutter Career in Nepal
Preparing for Flutter interviews is easier when you have structured training and hands-on project experience. At Swift Academy in Pokhara, our Flutter App Development course covers every topic in this article — from Dart fundamentals to clean architecture — with real project building and interview preparation sessions.
Explore Our Flutter Course in Pokhara and start building the skills that get you hired.
Related Articles
- Flutter App Development Course in Pokhara
- Flutter Developer Salary in Nepal 2026
- Flutter State Management Guide
Suggested Images
- Hero Image: Infographic showing "30 Flutter Interview Questions" with Flutter logo and Nepal map silhouette — Alt: "Flutter interview questions asked by Nepali IT companies in 2026"
- Mid-Article: Comparison table screenshot of state management options — Alt: "Flutter state management comparison for Nepal developer interviews"
- Bottom CTA: Photo of students practicing Flutter development at Swift Academy Pokhara — Alt: "Flutter development training at Swift Academy Pokhara Nepal"




