Pertanyaan dan Jawaban Wawancara Paling Populer & Tes Online
Platform edukasi untuk persiapan wawancara, tes online, tutorial, dan latihan langsung

Bangun keterampilan dengan jalur belajar terfokus, tes simulasi, dan konten siap wawancara.

WithoutBook menghadirkan pertanyaan wawancara per subjek, tes latihan online, tutorial, dan panduan perbandingan dalam satu ruang belajar yang responsif.

Prepare Interview

Flutter Pertanyaan dan Jawaban Wawancara

Ques 21. Explain the purpose of 'async* ' in Dart.

'async*' is used to define asynchronous generators in Dart. It allows the function to produce a sequence of values over time using 'yield' and is commonly used with streams and asynchronous iteration.

Example:

Stream generateNumbers() async* {
  for (int i = 0; i < 5; i++) {
    await Future.delayed(Duration(seconds: 1));
    yield i;
  }
}

Apakah ini membantu? Add Comment View Comments
 

Ques 22. What is the purpose of the 'InheritedWidget' in Flutter?

The 'InheritedWidget' is a widget in Flutter that allows the efficient propagation of data down the widget tree. It is often used for sharing application-wide state or configuration without passing it explicitly through the widget tree.

Apakah ini membantu? Add Comment View Comments
 

Ques 23. How can you handle responsive layouts in Flutter?

Responsive layouts in Flutter can be achieved using media queries, which allow developers to define different layouts based on the screen size or device orientation. Additionally, the 'LayoutBuilder' widget can be used to create responsive designs.

Example:

LayoutBuilder(
  builder: (BuildContext context, BoxConstraints constraints) {
    if (constraints.maxWidth > 600) {
      return DesktopView();
    } else {
      return MobileView();
    }
  },
)

Apakah ini membantu? Add Comment View Comments
 

Ques 24. What is the purpose of the 'Cupertino' widgets in Flutter?

The 'Cupertino' widgets in Flutter are designed to mimic the look and feel of iOS applications. They provide iOS-specific UI components and are useful for creating a consistent user experience across different platforms.

Example:

CupertinoButton(
  child: Text('Press me'),
  onPressed: () {
    // Handle button press
  },
)

Apakah ini membantu? Add Comment View Comments
 

Ques 25. Explain the role of the 'main.dart' file in a Flutter project.

The 'main.dart' file is the entry point of a Flutter application. It contains the 'main' function, which is the starting point of the app. This file is responsible for creating and running the main application widget.

Example:

void main() {
  runApp(MyApp());
}

Apakah ini membantu? Add Comment View Comments
 

Most helpful rated by users:

Hak Cipta © 2026, WithoutBook.