Flutter Online Test

TestDome skill assessments are used by more than 11,000 companies and 1,030,000 test takers.

For Jobseekers

Practice your skills and earn a certificate of achievement when you score in the top 25%.

Take a Practice Test

For Companies

Test candidates with real-world problems and interview the best ones.

Sign Up to Offer this Test

About the test

The Flutter online test assesses knowledge of key concepts used to build UIs with Flutter, through a series of multiple-choice and fill-in-the-blank questions.

The assessment includes work-sample tasks such as:

  • Managing and configuring widgets.
  • Navigating between routes.
  • Using conditional rendering to dynamically show/hide UI elements.

A good Flutter developer should be able to work with the Flutter framework to build high performance and user-friendly interfaces.

Sample public questions

Easy
7 min
mca
Public
Flutter
Life Cycle
Widgets

A voting application made with Flutter uses the VoteOnce widget, which allows the user to trigger the onTapCallback function only once no matter how many times it's tapped.

The code for VoteOnce widget is given below:

class VoteOnce extends StatefulWidget {
  final Function onTapCallback;
  final String tapText;

  const VoteOnce({Key? key, required this.onTapCallback, required this.tapText}): super(key: key);

  @override
  _VoteOnceState createState() => _VoteOnceState();
}

class _VoteOnceState extends State<VoteOnce> {
  bool _wasTapped = false;
  String _displayText = "";

  @override
  void initState() {
    super.initState();
    _displayText = widget.tapText;
  }

  @override
  Widget build(BuildContext context) {
    return Container(
      child: GestureDetector(
        onTap: () {
          if (!_wasTapped) {
            widget.onTapCallback();
          }
          setState(() {
            _wasTapped = true;
            _displayText = "Voted";
          });
        },
        child: Text("Vote for $_displayText"),
      ),
    );
  }
}

What can be concluded about the lifecycle of the VoteOnce widget?

Easy
5 min
mca
Public
Flutter
Null Safety

Consider the following code for a PatientNameDisplay widget in a hospital app made with Flutter:

class PatientNameDisplay extends StatefulWidget {
  final String patientName;
  final bool isAlive;
  PatientNameDisplay({this.patientName, this.isAlive});

  @override
  State<PatientNameDisplay> createState() => _PatientNameDisplayState();
}

class _PatientNameDisplayState extends State<PatientNameDisplay> {
  @override
  Widget build(BuildContext context) {
    return Text(
      (widget.patientName ?? "John Doe"),
      style: TextStyle(color: widget.isAlive ? Colors.blue : Colors.red),
    );
  }
}

The PatientNameDisplay widget defined above is used to display a patient's name. It has the following requirements:

  • The widget might receive patientName as null in the case of anonymous patients.
  • The widget will always receive the patient's status in the isAlive field.

Considering the requirements and the code above, what needs to be done to migrate the code to have sound null safety?

For jobseekers: get certified

Earn a free certificate by achieving top 25% on the Flutter test with public questions.

Take a Certification Test

Sample silver certificate

Sunshine Caprio

Java and SQL
TestDome
Certificate
TestDome logo icon

For companies: premium questions

Buy TestDome to access premium questions that can't be practiced.
Get money back if you find any premium question answered online.

Sign Up to Offer this Test

5 more premium Flutter questions

Social Media Data, Student Search, Files Screen, Diary App, Product Details.

Skills and topics tested

  • Flutter
  • Async-Await
  • Asynchronous Programming
  • Widgets
  • Navigation
  • Layout
  • Conditional Rendering

For job roles

  • Flutter Developer
  • Mobile Developer

Sample candidate report

What others say

Decorative quote

Simple, straight-forward technical testing

TestDome is simple, provides a reasonable (though not extensive) battery of tests to choose from, and doesn't take the candidate an inordinate amount of time. It also simulates working pressure with the time limits.

Jan Opperman, Grindrod Bank

Product reviews

G2 - Crowd Badge
G2 - High Performer (2022)
Capterra - 4.5 Stars
Capterra - Shortlist (2023)

Used by

Solve all your skill testing needs

150+ Pre-made tests

From web development and database administration to project management and customer support. See all pre-made tests.

90+ skills

From JavaScript and SQL to English and customer support. See all questions to filter by skill.

Multi-skills Test

Mix questions for different skills or even custom questions in one test. See an example.

How TestDome works

1

Choose a pre-made test
or create a custom test

2

Invite candidates via
email, URL, or your ATS

3

Candidates take
a test remotely

4

Sort candidates and
get individual reports

Want to know more?