flutter test2
flutter test2
1.2- Because it saves developers time and effort in terms of creating and maintaining codes, it also
features high performance and an ideal and fully customizable user experience.
------------------------------------------------------------------------------------------------------------------
- ii) ListView
- iii) Stack
- iv) Expanded
2.1 - ii)ListView
- i) build()
- ii) setState()
- iii) initState()
- iv) dispose()
answer
2.2 -ii)setState()
b) StatelessWidget is used for creating __________ UIs that do not change over time
answer
3.1 a) The root of a Flutter app is usually a (MaterialApp) widget
3.2 b) StatelessWidget is used for creating (static) UIs that do not change over time
answer
4.1 a) MaterialApp is the controller of the roots and layout file of the application. Includes navigation
guidance and audio-visual resources for managing items
4.2 b) Navigation between screens in filters is achieved using the (Navigator) widget, which allows
pushing and pulling screens (called Routes) on a stack.
1.1 a) State management is important because applications need to handle changing data and an
interface that reflects these changes in real time. Without an organized state management mechanism,
code can become complex and unstructured.
1.2 b) Two popular case management solutions in Flutter are (Provider & Bloc)
- i) GridView
- ii) ListView.builder
- iii) SingleChildScrollView
- iv) Column
3. True/False. (4 Points)
a) The Navigator.push() method is used to remove the current screen from the stack.
3.1 a) false
3.2 b) true
4.1 a) StatefulWidgets in Flutter go through a lifecycle that includes several main steps: building the state
(initState()), building the interface (build()), changing the state (setState()), and removing the state
(dispose()).
4.2 b)
- async : A keyword used with a function to indicate that it will contain an asynchronous operation and
return Future
- await: A keyword used inside an async function to wait for the Future to complete before continuing
code execution
1.1 a)
Provider : I don't know much about it. I've used it a little it's easy to use and it integrates well with
simple screens but i think is not good for large-scale applications .
Bloc : Uses event patterns for state management, suitable for large-scale applications
Riverpod : I haven't learned it yet
3.1 a) To detect performance issues in a Flutter application, you can use the (Flutter DevTools ) suite or
you can use the (Flutter Inspector ) to examine the widget tree and identify problems in the application
structure
b) What are the benefits of using keys in widgets, and when should you use GlobalKey?
3.2 b) Benefits of using keys include improving performance and helping to preserve the condition of the
part when it is rebuilt.
GlobalKey : should be used when you need to access and maintain state across different tree tools.
1.1
Well, I have only studied animation in Flutter a little, so perhaps this is a simple application, but I learned
a little bit of animation in => https://api.flutter.dev/flutter/animation/AnimationController-class.html
Animation App Github Link => https://github.com/lbarsidati HYPERLINK
"https://github.com/lbarsidati22/test_imt_animation"22 HYPERLINK
"https://github.com/lbarsidati22/test_imt_animation"/test_imt_animation
2.1
I think I did not understand this test well. I did something that I do not know if it was in line with the
request
3.1
I only have a little experience with Hive, so I'm using it. I hope you like it