lib/holds the public package entrypoint (sticker_keyboard.dart) plus internal widgets, models, and utils underlib/widgets,lib/models, andlib/utils.example/contains a runnable Flutter demo app with its ownlib/,test/, and platform folders (Android/iOS/macOS).test/is the package-level test suite (currently minimal).screenshots/andlib/icons/store documentation assets and package icon resources.
flutter pub getinstalls dependencies for the package.flutter analyzeruns static analysis usingflutter_lints.flutter testruns package tests undertest/.flutter runfromexample/launches the demo app; runcd examplefirst.
- Dart formatting: use
dart format .(2-space indentation, trailing commas where typical for Flutter). - Linting follows
analysis_options.yamlviaflutter_lints. - File naming: lower_snake_case for Dart files (e.g.,
sticker_picker_widget.dart). - Public API types and classes use UpperCamelCase; prefer descriptive widget names (e.g.,
StickerPickerWidget).
- Framework:
flutter_test(seedev_dependenciesinpubspec.yaml). - Name tests using
_test.dartsuffix intest/. - Add widget tests for UI behaviors and unit tests for utils; keep new coverage near touched code.
- Recent history shows short, imperative messages and optional emoji prefixes (e.g.,
🐛 Fix incorrect logic). - Keep commits focused; include a brief context line in PR descriptions.
- For UI changes, attach screenshots or a short clip from the
example/app. - Link related issues when applicable.
- Sticker assets are expected under a project
assets/stickers/tree in the host app; update the host app’spubspec.yamlaccordingly.