0
0
Fluttermobile~10 mins

Code obfuscation and optimization in Flutter - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to enable code obfuscation in Flutter build command.

Flutter
flutter build apk --[1]
Drag options to blanks, or click blank then click option'
Arelease
Bdebug
Cprofile
Dobfuscate
Attempts:
3 left
💡 Hint
Common Mistakes
Using --debug instead of --obfuscate
Forgetting to add --obfuscate flag
2fill in blank
medium

Complete the code to specify the directory for storing debug symbols during obfuscation.

Flutter
flutter build apk --obfuscate --split-debug-info=[1]
Drag options to blanks, or click blank then click option'
Abuild/debug-info
Blib/src
Candroid/app
Dassets/images
Attempts:
3 left
💡 Hint
Common Mistakes
Using source code folders like lib/src
Using unrelated folders like assets/images
3fill in blank
hard

Fix the error in the Flutter build command to properly optimize the app for release.

Flutter
flutter build apk --[1] --obfuscate
Drag options to blanks, or click blank then click option'
Adebug
Bprofile
Crelease
Dtest
Attempts:
3 left
💡 Hint
Common Mistakes
Using debug mode with obfuscation
Using profile mode instead of release
4fill in blank
hard

Fill both blanks to create a Dart function that returns the optimized square of a number using a concise syntax.

Flutter
int square(int x) => x [1] [2];
Drag options to blanks, or click blank then click option'
A*
B+
C-
D/
Attempts:
3 left
💡 Hint
Common Mistakes
Using addition or subtraction instead of multiplication
Using division operator
5fill in blank
hard

Fill all three blanks to create a Dart map comprehension that filters and squares even numbers from a list.

Flutter
{ [1]: [2] * [2] for (var [3] in numbers if [2] % 2 == 0) }
Drag options to blanks, or click blank then click option'
Anum
Bx
Di
Attempts:
3 left
💡 Hint
Common Mistakes
Using different variable names inconsistently
Using a variable not declared in the loop