Flutter Dev Tools Flashcards
(23 cards)
identifying and resolving errors/bugs in software
debugging
type of error caused by incorrect program flow, semantic errors, and flawed logic
logical error
possible fix for logical error
look at requirements
type of error that is often caused by unexpected data, null values, out-of-bounds access, or issues with external resources
runtime errors
possible strategies to debug runtime errors (2)
- read the debug information
- use try-catch
examples of runtime errors (3)
- NullPointerException
- NoSuchMethod
- FileNotFoundException
type of error caused by a broken layout
rendering issues
possible strategies to debug rendering issues (3)
- flutter inspector
- read the widget properties and documentation
- use “show guidelines” and “highlight repaints” tool
example of rendering issues (2)
- layout overflow
- incorrect widget placement
type of error which causes the program to run unexpectedly slow but not crash
performance problems
possible strategies to fix performance problems (3)
- app profiling
- use flutter dev tools
- read the flutter dev tools results
type of error caused by problems interacting with external APIs, services, and databases
integration errors
possible strategies to fix integration errors (3)
- use flutter dev tools (network)
- read the external service’s documentation
- testing api endpoints independently
flutter dev tool that shows the device info, sdk info, and emulator info
summary
flutter dev tool that shows the tree view and details of every widget
widget inspector
flutter dev tools that provide additional visualizations to help you analyze your layout (3)
- show guidelines
- show baselines
- highlight repaints
flutter dev tool that combines key metrics and visualizations from the timeline and CPU profiler
performance profiler
flutter dev tool that shows CPU use analysis and identifies expensive functions
cpu profiler
flutter dev tool that shows memory usage analysis, identifies memory leaks, and garbage collection analysis
memory analyser
flutter dev tool that shows http requests
network analyser
flutter dev tool that shows the log of events that occurred in the app
logging
flutter dev tool that shows package specific information
package specific
flutter dev tools are for (5)
- for deeper understanding
- efficient debugging
- performance optimization
- ui inspection
- network analysis