This repo contains a list of helpful Flutter related questions you can use to interview potential candidates.

Overview
Awesome Flutter

Flutter Interview Questions

This file contains a number of Flutter interview questions.

Note: Keep in mind that many of these questions are open-ended and could lead to interesting discussions.


Title: Flutter Interview Questions

  • What is the difference between a StatelessWidget and a StatefulWidget in Flutter?
  • Explain the Stateful Widget Lifecycle?
  • When do you use the WidgetsBindingObserver?
  • What is Flutter tree shaking?
  • What is a Spacer widget?
  • What is the difference between hot restart and hot reload?
  • What is an InheritedWidget? List some examples.
  • Why is the build() method on State and not StatefulWidgets?
  • What is a pubspec file in Dart?
  • How is Flutter native?
  • What is a Navigator and what are Routes in Flutter?
  • What is a PageRoute?
  • Explain async, await and Futures.
  • How can you update a ListView dynamically?
  • What is a Stream?
  • What are keys in Flutter and when should you use it?
  • What are GlobalKeys?
  • When should you use mainAxisAlignment and crossAxisAlignment?
  • When can you use double.INFINITY?
  • What is Ticker, Tween and AnimatedBuilder?
  • What is ephemeral state?
  • What is an AspectRatio widget used for?
  • How would you access StatefulWidget properties from its State?
  • Is there a suggested limit to the number of FloatingActionButtons a screen can have? Give a reason(s) for your answer
  • Mention two or more operations that would require you to use or return a Future.
  • What is the purpose of a SafeArea?
  • When to use a mainAxisSize?
  • SizedBox VS Container?
  • List the Visibility widgets in flutter and the differences?
  • Can we use Color and Decoration property simultaneously in the Container? Explain
  • Inorder for the CrossAxisAlignment.baseline to work what is another property that we need to set?
  • when should we use a resizeToAvoidBottomInset?
  • What is the difference between 'as','show' and 'hide' in an import statement?
  • What is the importance of a TextEditingController?
  • Why do we use a Reverse property in a Listview?
  • Difference between a Modal and Persistent BottomSheet with an example?
  • How is an Inherited Widget different from a Provider?
  • What is an UnmodifiableListView?
  • Difference between these operators "?? and ?."
  • What is the purpose of ModalRoute.of()?
  • Difference between a Navigator.pushNamed and Navigator.pushReplacementNamed?
  • Difference between a Single Instance and Scoped Instance ?

Title: Animation Interview Questions

  • What is a vsync?
  • When does the animation reach completed or dismissed status?
  • Difference between `AnimationController and Animation?
  • When to use a SingleTickerProviderStateMixin and TickerProviderStateMixin?
  • Define a TweenAnimation ?
  • State the importance of a Ticker ?
  • Why do we need a mixins ?

Title: FireStore Interview Questions

  • Difference between getDocuments() vs snapshots()?

Getting Involved

  1. How to Contribute
  2. License

Contributors:

This project is currently maintained by:

Feeling inspired? Check our Contributing guide to get started!

Comments
  • [ * Interview Question?]

    [ * Interview Question?]

    What this PR does?

    • Add question on data-flow in stateful widgets
    • Add question on InheritedWidgets
    • Add question on FAB usage
    • Add question on Dart Future

    Note

    The aim is to help learner prepare for questions around data-flow in stateful widgets, InheritedWidgets and Futures

    opened by johngorithm 1
  • Update Source.md

    Update Source.md

    Cleaned up grammar. Removed:

    • What is the role of a ChangeNotifierProvider?
    • What is a ValueListenableBuilder? Because these are questions about the provider library and not about Flutter.

    Deleted duplicate questions

    opened by ThinkDigitalSoftware 0
  • PREFER using lowerCamelCase for constant names

    PREFER using lowerCamelCase for constant names

    Effective Dart: Style Linter rule

    In new code, use lowerCamelCase for constant variables, including enum values.

    In existing code that uses ALL_CAPS_WITH_UNDERSCORES for constants, you may continue to use all caps to stay consistent.

    opened by rustkas 0
  • I am new to flutter and i am developing flutter app I want to call a function inside the column but it said null values.i have tried to show the Title1() function inside the Photo() class but it shows error.

    I am new to flutter and i am developing flutter app I want to call a function inside the column but it said null values.i have tried to show the Title1() function inside the Photo() class but it shows error.

    [class Internal extends StatefulWidget{

          @override
          _InternalState createState()=>_InternalState();
        
        }
        class _InternalState extends State<Internal> {
        
          bool isSearching=false;
          Photo(int number,){
            return Scaffold(
              backgroundColor: Color(0XFFfffafa),
              body: SafeArea(
              child: SingleChildScrollView(
                child: Container(
                  child: Stack(
                    children: <Widget>[
                      Container(
                        height: 19,
                        child: Padding(
                          padding: const EdgeInsets.only(right:360.0),
                          child: IconButton(icon: Icon(Icons.arrow_back,color: Colors.black,size: 30,), onPressed: (){
                            Navigator.push(
                              context,
                              MaterialPageRoute(builder: (context) => Internal()),
                            );
        
                          }),
                        ),
                      ),
                    Title1(number),
                    ClipRRect(
                      borderRadius: BorderRadius.only(topRight: Radius.circular(40.0),topLeft: Radius.circular(40.0)),
                      child: Image(image:  AssetImage('images/song$number.jpg'),),
                    ),
                    ],
                  ),
                ),
              ),
            ),
        Title1(int number){
          number=1;
          Container(
            margin: EdgeInsets.only(left:37.0,right: 37,bottom: 10),
            child: Center(child: Text('Tempo : 102\nStyle : Waltz\nChord : C\nTranspose : 4',
              style: TextStyle(color: Colors.white,fontFamily: 'SourceSansPro',fontWeight: FontWeight.w600,fontSize: 20),)),
            height: 120.0,
            width: 380,
            decoration: BoxDecoration(shape: BoxShape.rectangle,color: Color(0XFF40404F),borderRadius: BorderRadius.circular(20.0)),
          );
          number=2;
          Container(
            margin: EdgeInsets.only(left:37.0,right: 37,bottom: 10),
            child: Center(child: Text('Tempo : 102\nStyle : Waltz\nChord : C\nTranspose : 2',
              style: TextStyle(color: Colors.white,fontFamily: 'SourceSansPro',fontWeight: FontWeight.w600,fontSize: 20),)),
            height: 120.0,
            width: 380,
            decoration: BoxDecoration(shape: BoxShape.rectangle,color: Color(0XFF40404F),borderRadius: BorderRadius.circular(20.0)),
          );
        }
        );
      }
    
    opened by Natnael3344 0
  • Future<HttpClient> is not a subtype of HttpClient

    Future is not a subtype of HttpClient

    import 'dart:io';    
    import 'package:dio/dio.dart';
    import 'package:flutter/material.dart';
    import 'package:flutter/services.dart';
    import 'package:flutter_app_retrofit/example.dart';
    
    class Homepage extends StatefulWidget {
    @override
    HomepageState createState() => HomepageState();
    }
    
    class _HomepageState extends State<Homepage> {
    @override
    Widget build(BuildContext context) {
    return Scaffold(
    backgroundColor: Colors.white,
    body: Center(
    child: FutureBuilder(
    future: this._getPosts(),
    builder: (context, snapshot) {
    switch (snapshot.connectionState) {
    case ConnectionState.none:
    return CircularProgressIndicator();
    break;
    case ConnectionState.waiting:
    return CircularProgressIndicator();
    break;
    case ConnectionState.active:
    return CircularProgressIndicator();
    break;
    case ConnectionState.done:
    return CircularProgressIndicator();
    break;
    
    default:
    return CircularProgressIndicator();
         }
       },),
     ),
    );
    }
    
    Future _getPosts() async {
    final dio= Dio();
    (dio.httpClientAdapter as DefaultHttpClientAdapter).onHttpClientCreate = await (client) async {
    SecurityContext securityContext=new SecurityContext();
    final ByteData crtData = await rootBundle.load('assets/server.crt');
    securityContext.setTrustedCertificatesBytes(crtData.buffer.asUint8List());
    final ByteData keyBytes = await rootBundle.load('assets/server.key');
    securityContext.usePrivateKeyBytes(keyBytes.buffer.asUint8List());
    return HttpClient(context: securityContext);
    };
    final client = RestClient(dio);
    client.login('madhusudhan@****.in', '88888');
    
    }}
    

    In flutter we are getting using Dio. I am getting a error using Dio The problem is here that i need to use SSl certificate So i used Dio But now i am getting the below error. Unhandled exception Future is not a subtype of HttpClient.

    opened by Durgeshsinghn70 0
Owner
Whatsupcoders
Whatsupcoders offers tons of tips, tricks, hacks, resources, tutorials, fun DIY-projects. Join me on my adventures!!
Whatsupcoders
Dot-Net-Inverview-Bot - Dot net interview questions answering by bot built with flutter

Dot Net Interview question Answering Bot Dot net interview questions answering b

Maddi Mahesh 5 Feb 2, 2022
A collection of helpful utilities for use in Dart projects.

w_common A collection of helpful utilities for use in Dart projects. Right now, it includes the following: Disposable interface / mixin to assist with

Workiva 10 Dec 16, 2022
A public repo that contains all the projects built in live coding events.

JEToP Live Coding A public repo that contains all the projects built in live coding events. Star this repo to not miss it. Built with ❤️ by JEToP's IT

JEToP - Junior Enterprise Torino Politecnico 13 Nov 30, 2022
This repo contains the side menu UI for admin template

f9tech A new Flutter project. Getting Started This project is a starting point for a Flutter application. A few resources to get you started if this i

F9 Info Technologies Pvt Ltd 0 Dec 11, 2021
About This is Personal Expenses Planner. You can add your expenses in to the app and manage your transaction. and you can see How much did you spend on which day. I developed this project using flutter.

expense_planner A new Flutter project. Getting Started This project is a starting point for a Flutter application. A few resources to get you started

Darshit Rudani 5 Jul 6, 2022
QuizApp - A quiz app with decent questions, minimalistic UI and a dash of tangy randomness

QuizApp A quiz app with Decent questions, Minimalistic UI and a dash of Tangy Ra

null 1 Mar 28, 2022
A flutter app for a wordpress websites with clean and elegant design. This app is available in free and pro version. You can choose to use the one you need.

?? Get Flutter for Wordpress Flutter for wordpress is currently available in free and pro version: Flutter for Wordpress Flutter for Wordpress Pro Bea

mcyos118 18 Dec 13, 2022
A Simple Todo app design in Flutter to keep track of your task on daily basis. Its build on BLoC Pattern. You can add a project, labels, and due-date to your task also you can sort your task on the basis of project, label, and dates

WhatTodo Life can feel overwhelming. But it doesn’t have to. A Simple To-do app design in flutter to keep track of your task on daily basis. You can a

Burhanuddin Rashid 1k Jan 6, 2023
Crowdsourced COVID Related Resources Finder App Written In Flutter

COVIDAID+ Build Setup # install dependencies $ flutter pub get # run debug mode $ flutter run # run release mode $ flutter run --release # build ap

Mithun S Menon 4 Jul 21, 2022
An app to show everything bus related in Singapore, including arrival times and a directory

NextBus SG An app to show everything bus related in Singapore, including bus arrival times and a directory, with extra features. ?? Gallery Click here

null 103 Sep 13, 2022
An app to help you build your vocabulary.This app contains 800+ curated GRE words

Vocabhub 0.3.5 A vocabulary app built with Flutter and Supabase, that is simple to use and available on multiple platforms with 800+ most common GRE w

Mahesh Jamdade 25 Dec 21, 2022
A mobile image uploader in which you can upload image to your personal gallery from either your camera or mobile gallery and it can detect your current geographic location and address using firebase firestore and storage.

Image Uploader In Flutter About It is an Image Uploader gallery which tracks your address from which you're uploading using Flutter and Image picker.

Prahen parija 6 Dec 20, 2022
'Efficacy' is a an Android app that keeps users updated on all events and happenings in and around the NITS campus. Note that the one in this repo is a slightly altered version of the original.

Efficacy : The proposed Android app for all clubs, events and happenings at NIT Silchar Get the release APK Some interesting features of this app incl

Gaurav Bhattacharjee 2 Aug 29, 2021
This repo created for dsc galatasaray uni fultter camp

dsc_gds_widgets Flutter Widget-2 Flutter Camp 3. günü Sunum : https://www.canva.

Beyza Karadeniz 3 Aug 27, 2022
A flutter package which contains a collection of Splash Screen example for your app to display logo and different text style.

splash_screen_view They say, first impression is the last! Yep, truly for any amazingly crafted application, it's easier to start impressing your audi

Sandip Kalola (SK) 17 Nov 25, 2022
Winner (2nd Place) of the all-India UIDAI Hackathon 2021. The project contains a Verifier and a Resident application built to authenticate users through Aadhaar API's

Second Place Winner for the UIDAI Hackathon 2021 by Team 202 ACCEPTED Theme 2 : Problem Statement 4 100% Authentication success in Rural India Importa

Omkar Prabhune 13 Dec 30, 2022
This is a Flutter app which shows how to use the Reorderable List View in your app

reorderable_list_view A new Flutter project. Getting Started This project is a starting point for a Flutter application. A few resources to get you st

Shehzaan Mansuri 1 Oct 25, 2021
Kind of app that generally used to maintain our day-to-day tasks or list everything that we have to do.We can add more tasks at any time and delete a task that is completed.

todo_application A new Flutter project. Getting Started This project is a starting point for a Flutter application. A few resources to get you started

Khaled Elnkhla 0 Nov 6, 2021