flutter_dev_utils
Flutter dev utils to make your life easier
Features
-
Sync and async tryCatchHandler
- Used for state management to ensure you never miss an exception.
-
CallerLogger
- Built off logger package with functionality to print caller, ignore certain callers, and filter printed logs by caller type
-
Help
- Stop clicking those purple stackoverflow links! HelpFoo classes can be used for inline code help.
Usage
CallerLogger
var logger = CallerLogger(
ignoreCallers: {
'syncTryCatchHandler', // logs from this function will be ignored
},
filter: TypeFilter(
ignoreTypes: {
IgnoredClass, // logs from this class will be ignored
},
ignoreLevel: Level.warning, // logs of Level.warning and anove will always be shown
),
level: Level.verbose, // show logs of Level.verbose and above
);
See example/main_caller_logger.dart for more info.
tryCatchHandler
syncTryCatchHandler(
tryFunction: () =>
jsonDecode('notJson'), // this should throw an exception and print a detailed log
);
Additional information
Making Changes
- Run
flutter test
- Change version number in pubspec.yaml
- Update CHANGELOG.md
- Run
dart pub publish --dry-run
- Run
dart pub publish
Libraries
- flutter_dev_utils
- inline_help/classes/help_abstract_class
- inline_help/classes/help_annotations
- inline_help/classes/help_interface
- inline_help/classes/help_singleton
- inline_help/dart/help_dart
- inline_help/dart/help_dart_syntax
- inline_help/dart/help_inheritance
- inline_help/dart/help_initialiser_list
- inline_help/dart/help_modifiers
- inline_help/dart/help_sizing
- inline_help/dart/help_try_catch_finally
- inline_help/debugging/help_error
- inline_help/debugging/help_exceptions
- inline_help/flutter/help_animations
- inline_help/flutter/help_app_architecture
- inline_help/flutter/help_async
- inline_help/flutter/help_firebase
- inline_help/flutter/help_flutter
- inline_help/flutter/help_launcher_icons
- inline_help/flutter/help_ui_approach
- inline_help/state_management/help_change_notifier
- inline_help/state_management/help_focus
- inline_help/state_management/help_provider
- inline_help/state_management/help_state_management