Skip to content

Minor Improvements #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 16 additions & 16 deletions .dart_tool/package_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
},
{
"name": "build_runner",
"rootUri": "file:///Users/kishor/.pub-cache/hosted/pub.dev/build_runner-2.4.8",
"rootUri": "file:///Users/kishor/.pub-cache/hosted/pub.dev/build_runner-2.4.9",
"packageUri": "lib/",
"languageVersion": "3.0"
},
Expand Down Expand Up @@ -141,7 +141,7 @@
},
{
"name": "dio",
"rootUri": "file:///Users/kishor/.pub-cache/hosted/pub.dev/dio-5.4.2",
"rootUri": "file:///Users/kishor/.pub-cache/hosted/pub.dev/dio-5.4.3+1",
"packageUri": "lib/",
"languageVersion": "2.15"
},
Expand All @@ -165,7 +165,7 @@
},
{
"name": "file_picker",
"rootUri": "file:///Users/kishor/.pub-cache/hosted/pub.dev/file_picker-8.0.0+1",
"rootUri": "file:///Users/kishor/.pub-cache/hosted/pub.dev/file_picker-8.0.3",
"packageUri": "lib/",
"languageVersion": "2.19"
},
Expand Down Expand Up @@ -213,9 +213,9 @@
},
{
"name": "flutter_lints",
"rootUri": "file:///Users/kishor/.pub-cache/hosted/pub.dev/flutter_lints-3.0.1",
"rootUri": "file:///Users/kishor/.pub-cache/hosted/pub.dev/flutter_lints-3.0.2",
"packageUri": "lib/",
"languageVersion": "3.0"
"languageVersion": "3.1"
},
{
"name": "flutter_plugin_android_lifecycle",
Expand Down Expand Up @@ -249,7 +249,7 @@
},
{
"name": "freezed",
"rootUri": "file:///Users/kishor/.pub-cache/hosted/pub.dev/freezed-2.4.7",
"rootUri": "file:///Users/kishor/.pub-cache/hosted/pub.dev/freezed-2.5.2",
"packageUri": "lib/",
"languageVersion": "2.17"
},
Expand Down Expand Up @@ -303,9 +303,9 @@
},
{
"name": "image_picker",
"rootUri": "file:///Users/kishor/.pub-cache/hosted/pub.dev/image_picker-1.0.7",
"rootUri": "file:///Users/kishor/.pub-cache/hosted/pub.dev/image_picker-1.1.0",
"packageUri": "lib/",
"languageVersion": "3.0"
"languageVersion": "3.3"
},
{
"name": "image_picker_android",
Expand Down Expand Up @@ -339,7 +339,7 @@
},
{
"name": "image_picker_platform_interface",
"rootUri": "file:///Users/kishor/.pub-cache/hosted/pub.dev/image_picker_platform_interface-2.9.4",
"rootUri": "file:///Users/kishor/.pub-cache/hosted/pub.dev/image_picker_platform_interface-2.10.0",
"packageUri": "lib/",
"languageVersion": "3.3"
},
Expand Down Expand Up @@ -369,13 +369,13 @@
},
{
"name": "json_annotation",
"rootUri": "file:///Users/kishor/.pub-cache/hosted/pub.dev/json_annotation-4.8.1",
"rootUri": "file:///Users/kishor/.pub-cache/hosted/pub.dev/json_annotation-4.9.0",
"packageUri": "lib/",
"languageVersion": "2.19"
"languageVersion": "3.0"
},
{
"name": "json_serializable",
"rootUri": "file:///Users/kishor/.pub-cache/hosted/pub.dev/json_serializable-6.7.1",
"rootUri": "file:///Users/kishor/.pub-cache/hosted/pub.dev/json_serializable-6.8.0",
"packageUri": "lib/",
"languageVersion": "3.0"
},
Expand Down Expand Up @@ -561,7 +561,7 @@
},
{
"name": "uuid",
"rootUri": "file:///Users/kishor/.pub-cache/hosted/pub.dev/uuid-4.3.3",
"rootUri": "file:///Users/kishor/.pub-cache/hosted/pub.dev/uuid-4.4.0",
"packageUri": "lib/",
"languageVersion": "3.0"
},
Expand Down Expand Up @@ -597,7 +597,7 @@
},
{
"name": "web",
"rootUri": "file:///Users/kishor/.pub-cache/hosted/pub.dev/web-0.5.0",
"rootUri": "file:///Users/kishor/.pub-cache/hosted/pub.dev/web-0.5.1",
"packageUri": "lib/",
"languageVersion": "3.3"
},
Expand Down Expand Up @@ -632,7 +632,7 @@
"languageVersion": "3.2"
}
],
"generated": "2024-04-02T05:24:28.207964Z",
"generated": "2024-04-29T06:13:57.166600Z",
"generator": "pub",
"generatorVersion": "3.3.2"
"generatorVersion": "3.3.4"
}
50 changes: 25 additions & 25 deletions .dart_tool/package_config_subset
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ file:///Users/kishor/.pub-cache/hosted/pub.dev/build_resolvers-2.4.2/
file:///Users/kishor/.pub-cache/hosted/pub.dev/build_resolvers-2.4.2/lib/
build_runner
3.0
file:///Users/kishor/.pub-cache/hosted/pub.dev/build_runner-2.4.8/
file:///Users/kishor/.pub-cache/hosted/pub.dev/build_runner-2.4.8/lib/
file:///Users/kishor/.pub-cache/hosted/pub.dev/build_runner-2.4.9/
file:///Users/kishor/.pub-cache/hosted/pub.dev/build_runner-2.4.9/lib/
build_runner_core
3.0
file:///Users/kishor/.pub-cache/hosted/pub.dev/build_runner_core-7.3.0/
Expand Down Expand Up @@ -92,8 +92,8 @@ file:///Users/kishor/.pub-cache/hosted/pub.dev/dart_style-2.3.6/
file:///Users/kishor/.pub-cache/hosted/pub.dev/dart_style-2.3.6/lib/
dio
2.15
file:///Users/kishor/.pub-cache/hosted/pub.dev/dio-5.4.2/
file:///Users/kishor/.pub-cache/hosted/pub.dev/dio-5.4.2/lib/
file:///Users/kishor/.pub-cache/hosted/pub.dev/dio-5.4.3+1/
file:///Users/kishor/.pub-cache/hosted/pub.dev/dio-5.4.3+1/lib/
equatable
2.12
file:///Users/kishor/.pub-cache/hosted/pub.dev/equatable-2.0.5/
Expand All @@ -108,8 +108,8 @@ file:///Users/kishor/.pub-cache/hosted/pub.dev/file-7.0.0/
file:///Users/kishor/.pub-cache/hosted/pub.dev/file-7.0.0/lib/
file_picker
2.19
file:///Users/kishor/.pub-cache/hosted/pub.dev/file_picker-8.0.0+1/
file:///Users/kishor/.pub-cache/hosted/pub.dev/file_picker-8.0.0+1/lib/
file:///Users/kishor/.pub-cache/hosted/pub.dev/file_picker-8.0.3/
file:///Users/kishor/.pub-cache/hosted/pub.dev/file_picker-8.0.3/lib/
file_selector_linux
2.19
file:///Users/kishor/.pub-cache/hosted/pub.dev/file_selector_linux-0.9.2+1/
Expand All @@ -135,9 +135,9 @@ flutter_animate
file:///Users/kishor/.pub-cache/hosted/pub.dev/flutter_animate-4.5.0/
file:///Users/kishor/.pub-cache/hosted/pub.dev/flutter_animate-4.5.0/lib/
flutter_lints
3.0
file:///Users/kishor/.pub-cache/hosted/pub.dev/flutter_lints-3.0.1/
file:///Users/kishor/.pub-cache/hosted/pub.dev/flutter_lints-3.0.1/lib/
3.1
file:///Users/kishor/.pub-cache/hosted/pub.dev/flutter_lints-3.0.2/
file:///Users/kishor/.pub-cache/hosted/pub.dev/flutter_lints-3.0.2/lib/
flutter_plugin_android_lifecycle
2.19
file:///Users/kishor/.pub-cache/hosted/pub.dev/flutter_plugin_android_lifecycle-2.0.17/
Expand All @@ -156,8 +156,8 @@ file:///Users/kishor/.pub-cache/hosted/pub.dev/fp_logger-1.0.0/
file:///Users/kishor/.pub-cache/hosted/pub.dev/fp_logger-1.0.0/lib/
freezed
2.17
file:///Users/kishor/.pub-cache/hosted/pub.dev/freezed-2.4.7/
file:///Users/kishor/.pub-cache/hosted/pub.dev/freezed-2.4.7/lib/
file:///Users/kishor/.pub-cache/hosted/pub.dev/freezed-2.5.2/
file:///Users/kishor/.pub-cache/hosted/pub.dev/freezed-2.5.2/lib/
freezed_annotation
2.17
file:///Users/kishor/.pub-cache/hosted/pub.dev/freezed_annotation-2.4.1/
Expand Down Expand Up @@ -191,9 +191,9 @@ http_parser
file:///Users/kishor/.pub-cache/hosted/pub.dev/http_parser-4.0.2/
file:///Users/kishor/.pub-cache/hosted/pub.dev/http_parser-4.0.2/lib/
image_picker
3.0
file:///Users/kishor/.pub-cache/hosted/pub.dev/image_picker-1.0.7/
file:///Users/kishor/.pub-cache/hosted/pub.dev/image_picker-1.0.7/lib/
3.3
file:///Users/kishor/.pub-cache/hosted/pub.dev/image_picker-1.1.0/
file:///Users/kishor/.pub-cache/hosted/pub.dev/image_picker-1.1.0/lib/
image_picker_android
3.0
file:///Users/kishor/.pub-cache/hosted/pub.dev/image_picker_android-0.8.9+3/
Expand All @@ -216,8 +216,8 @@ file:///Users/kishor/.pub-cache/hosted/pub.dev/image_picker_macos-0.2.1+1/
file:///Users/kishor/.pub-cache/hosted/pub.dev/image_picker_macos-0.2.1+1/lib/
image_picker_platform_interface
3.3
file:///Users/kishor/.pub-cache/hosted/pub.dev/image_picker_platform_interface-2.9.4/
file:///Users/kishor/.pub-cache/hosted/pub.dev/image_picker_platform_interface-2.9.4/lib/
file:///Users/kishor/.pub-cache/hosted/pub.dev/image_picker_platform_interface-2.10.0/
file:///Users/kishor/.pub-cache/hosted/pub.dev/image_picker_platform_interface-2.10.0/lib/
image_picker_windows
2.19
file:///Users/kishor/.pub-cache/hosted/pub.dev/image_picker_windows-0.2.1+1/
Expand All @@ -235,13 +235,13 @@ js
file:///Users/kishor/.pub-cache/hosted/pub.dev/js-0.7.1/
file:///Users/kishor/.pub-cache/hosted/pub.dev/js-0.7.1/lib/
json_annotation
2.19
file:///Users/kishor/.pub-cache/hosted/pub.dev/json_annotation-4.8.1/
file:///Users/kishor/.pub-cache/hosted/pub.dev/json_annotation-4.8.1/lib/
3.0
file:///Users/kishor/.pub-cache/hosted/pub.dev/json_annotation-4.9.0/
file:///Users/kishor/.pub-cache/hosted/pub.dev/json_annotation-4.9.0/lib/
json_serializable
3.0
file:///Users/kishor/.pub-cache/hosted/pub.dev/json_serializable-6.7.1/
file:///Users/kishor/.pub-cache/hosted/pub.dev/json_serializable-6.7.1/lib/
file:///Users/kishor/.pub-cache/hosted/pub.dev/json_serializable-6.8.0/
file:///Users/kishor/.pub-cache/hosted/pub.dev/json_serializable-6.8.0/lib/
lints
3.0
file:///Users/kishor/.pub-cache/hosted/pub.dev/lints-3.0.0/
Expand Down Expand Up @@ -360,8 +360,8 @@ file:///Users/kishor/.pub-cache/hosted/pub.dev/typed_data-1.3.2/
file:///Users/kishor/.pub-cache/hosted/pub.dev/typed_data-1.3.2/lib/
uuid
3.0
file:///Users/kishor/.pub-cache/hosted/pub.dev/uuid-4.3.3/
file:///Users/kishor/.pub-cache/hosted/pub.dev/uuid-4.3.3/lib/
file:///Users/kishor/.pub-cache/hosted/pub.dev/uuid-4.4.0/
file:///Users/kishor/.pub-cache/hosted/pub.dev/uuid-4.4.0/lib/
vector_graphics
2.17
file:///Users/kishor/.pub-cache/hosted/pub.dev/vector_graphics-1.1.11+1/
Expand All @@ -384,8 +384,8 @@ file:///Users/kishor/.pub-cache/hosted/pub.dev/watcher-1.1.0/
file:///Users/kishor/.pub-cache/hosted/pub.dev/watcher-1.1.0/lib/
web
3.3
file:///Users/kishor/.pub-cache/hosted/pub.dev/web-0.5.0/
file:///Users/kishor/.pub-cache/hosted/pub.dev/web-0.5.0/lib/
file:///Users/kishor/.pub-cache/hosted/pub.dev/web-0.5.1/
file:///Users/kishor/.pub-cache/hosted/pub.dev/web-0.5.1/lib/
web_socket_channel
3.3
file:///Users/kishor/.pub-cache/hosted/pub.dev/web_socket_channel-2.4.4/
Expand Down
2 changes: 1 addition & 1 deletion .dart_tool/version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.19.4
3.19.6
4 changes: 2 additions & 2 deletions .flutter-plugins
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# This is a generated file; do not edit or check into version control.
file_picker=/Users/kishor/.pub-cache/hosted/pub.dev/file_picker-8.0.0+1/
file_picker=/Users/kishor/.pub-cache/hosted/pub.dev/file_picker-8.0.3/
file_selector_linux=/Users/kishor/.pub-cache/hosted/pub.dev/file_selector_linux-0.9.2+1/
file_selector_macos=/Users/kishor/.pub-cache/hosted/pub.dev/file_selector_macos-0.9.3+3/
file_selector_windows=/Users/kishor/.pub-cache/hosted/pub.dev/file_selector_windows-0.9.3+1/
flutter_plugin_android_lifecycle=/Users/kishor/.pub-cache/hosted/pub.dev/flutter_plugin_android_lifecycle-2.0.17/
image_picker=/Users/kishor/.pub-cache/hosted/pub.dev/image_picker-1.0.7/
image_picker=/Users/kishor/.pub-cache/hosted/pub.dev/image_picker-1.1.0/
image_picker_android=/Users/kishor/.pub-cache/hosted/pub.dev/image_picker_android-0.8.9+3/
image_picker_for_web=/Users/kishor/.pub-cache/hosted/pub.dev/image_picker_for_web-3.0.2/
image_picker_ios=/Users/kishor/.pub-cache/hosted/pub.dev/image_picker_ios-0.8.9+2/
Expand Down
2 changes: 1 addition & 1 deletion .flutter-plugins-dependencies
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"file_picker","path":"/Users/kishor/.pub-cache/hosted/pub.dev/file_picker-8.0.0+1/","native_build":true,"dependencies":[]},{"name":"image_picker_ios","path":"/Users/kishor/.pub-cache/hosted/pub.dev/image_picker_ios-0.8.9+2/","native_build":true,"dependencies":[]}],"android":[{"name":"file_picker","path":"/Users/kishor/.pub-cache/hosted/pub.dev/file_picker-8.0.0+1/","native_build":true,"dependencies":["flutter_plugin_android_lifecycle"]},{"name":"flutter_plugin_android_lifecycle","path":"/Users/kishor/.pub-cache/hosted/pub.dev/flutter_plugin_android_lifecycle-2.0.17/","native_build":true,"dependencies":[]},{"name":"image_picker_android","path":"/Users/kishor/.pub-cache/hosted/pub.dev/image_picker_android-0.8.9+3/","native_build":true,"dependencies":["flutter_plugin_android_lifecycle"]}],"macos":[{"name":"file_selector_macos","path":"/Users/kishor/.pub-cache/hosted/pub.dev/file_selector_macos-0.9.3+3/","native_build":true,"dependencies":[]},{"name":"image_picker_macos","path":"/Users/kishor/.pub-cache/hosted/pub.dev/image_picker_macos-0.2.1+1/","native_build":false,"dependencies":["file_selector_macos"]}],"linux":[{"name":"file_selector_linux","path":"/Users/kishor/.pub-cache/hosted/pub.dev/file_selector_linux-0.9.2+1/","native_build":true,"dependencies":[]},{"name":"image_picker_linux","path":"/Users/kishor/.pub-cache/hosted/pub.dev/image_picker_linux-0.2.1+1/","native_build":false,"dependencies":["file_selector_linux"]}],"windows":[{"name":"file_selector_windows","path":"/Users/kishor/.pub-cache/hosted/pub.dev/file_selector_windows-0.9.3+1/","native_build":true,"dependencies":[]},{"name":"image_picker_windows","path":"/Users/kishor/.pub-cache/hosted/pub.dev/image_picker_windows-0.2.1+1/","native_build":false,"dependencies":["file_selector_windows"]}],"web":[{"name":"file_picker","path":"/Users/kishor/.pub-cache/hosted/pub.dev/file_picker-8.0.0+1/","dependencies":[]},{"name":"image_picker_for_web","path":"/Users/kishor/.pub-cache/hosted/pub.dev/image_picker_for_web-3.0.2/","dependencies":[]}]},"dependencyGraph":[{"name":"file_picker","dependencies":["flutter_plugin_android_lifecycle"]},{"name":"file_selector_linux","dependencies":[]},{"name":"file_selector_macos","dependencies":[]},{"name":"file_selector_windows","dependencies":[]},{"name":"flutter_plugin_android_lifecycle","dependencies":[]},{"name":"image_picker","dependencies":["image_picker_android","image_picker_for_web","image_picker_ios","image_picker_linux","image_picker_macos","image_picker_windows"]},{"name":"image_picker_android","dependencies":["flutter_plugin_android_lifecycle"]},{"name":"image_picker_for_web","dependencies":[]},{"name":"image_picker_ios","dependencies":[]},{"name":"image_picker_linux","dependencies":["file_selector_linux"]},{"name":"image_picker_macos","dependencies":["file_selector_macos"]},{"name":"image_picker_windows","dependencies":["file_selector_windows"]}],"date_created":"2024-04-02 11:09:28.312815","version":"3.19.4"}
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"file_picker","path":"/Users/kishor/.pub-cache/hosted/pub.dev/file_picker-8.0.3/","native_build":true,"dependencies":[]},{"name":"image_picker_ios","path":"/Users/kishor/.pub-cache/hosted/pub.dev/image_picker_ios-0.8.9+2/","native_build":true,"dependencies":[]}],"android":[{"name":"file_picker","path":"/Users/kishor/.pub-cache/hosted/pub.dev/file_picker-8.0.3/","native_build":true,"dependencies":["flutter_plugin_android_lifecycle"]},{"name":"flutter_plugin_android_lifecycle","path":"/Users/kishor/.pub-cache/hosted/pub.dev/flutter_plugin_android_lifecycle-2.0.17/","native_build":true,"dependencies":[]},{"name":"image_picker_android","path":"/Users/kishor/.pub-cache/hosted/pub.dev/image_picker_android-0.8.9+3/","native_build":true,"dependencies":["flutter_plugin_android_lifecycle"]}],"macos":[{"name":"file_selector_macos","path":"/Users/kishor/.pub-cache/hosted/pub.dev/file_selector_macos-0.9.3+3/","native_build":true,"dependencies":[]},{"name":"image_picker_macos","path":"/Users/kishor/.pub-cache/hosted/pub.dev/image_picker_macos-0.2.1+1/","native_build":false,"dependencies":["file_selector_macos"]}],"linux":[{"name":"file_selector_linux","path":"/Users/kishor/.pub-cache/hosted/pub.dev/file_selector_linux-0.9.2+1/","native_build":true,"dependencies":[]},{"name":"image_picker_linux","path":"/Users/kishor/.pub-cache/hosted/pub.dev/image_picker_linux-0.2.1+1/","native_build":false,"dependencies":["file_selector_linux"]}],"windows":[{"name":"file_selector_windows","path":"/Users/kishor/.pub-cache/hosted/pub.dev/file_selector_windows-0.9.3+1/","native_build":true,"dependencies":[]},{"name":"image_picker_windows","path":"/Users/kishor/.pub-cache/hosted/pub.dev/image_picker_windows-0.2.1+1/","native_build":false,"dependencies":["file_selector_windows"]}],"web":[{"name":"file_picker","path":"/Users/kishor/.pub-cache/hosted/pub.dev/file_picker-8.0.3/","dependencies":[]},{"name":"image_picker_for_web","path":"/Users/kishor/.pub-cache/hosted/pub.dev/image_picker_for_web-3.0.2/","dependencies":[]}]},"dependencyGraph":[{"name":"file_picker","dependencies":["flutter_plugin_android_lifecycle"]},{"name":"file_selector_linux","dependencies":[]},{"name":"file_selector_macos","dependencies":[]},{"name":"file_selector_windows","dependencies":[]},{"name":"flutter_plugin_android_lifecycle","dependencies":[]},{"name":"image_picker","dependencies":["image_picker_android","image_picker_for_web","image_picker_ios","image_picker_linux","image_picker_macos","image_picker_windows"]},{"name":"image_picker_android","dependencies":["flutter_plugin_android_lifecycle"]},{"name":"image_picker_for_web","dependencies":[]},{"name":"image_picker_ios","dependencies":[]},{"name":"image_picker_linux","dependencies":["file_selector_linux"]},{"name":"image_picker_macos","dependencies":["file_selector_macos"]},{"name":"image_picker_windows","dependencies":["file_selector_windows"]}],"date_created":"2024-04-29 11:58:57.275051","version":"3.19.6"}
4 changes: 2 additions & 2 deletions .github/workflows/validate-pull-request.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# .github/workflows/validate-pull-request.yml
name: Publish to pub.dev
name: Validate Pull Request
on:
pull_request:
branches:
Expand All @@ -21,7 +21,7 @@ jobs:
run: flutter pub get

- name: 📝 Format Code
run: dart format . --set-exit-if-changed
run: dart format .

- name: 📝 Analyze Code
run: dart analyze .
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
# 3.1.6

- Re-land logger
- Deps update
- Minor improvements

# 3.1.5

- Fix Device Size Calculation

# 3.1.4

- Utilize unused parameter in FPSnackBar
- Utilize unused parameter in FPSnackBar

# 3.1.3

Expand Down
1 change: 0 additions & 1 deletion example/lib/pages/forms/cubit/form_cubit.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import 'package:bloc/bloc.dart';
import 'package:fp_util/form.dart';
import 'package:fp_util/fp_util.dart';
import 'package:freezed_annotation/freezed_annotation.dart';

Expand Down
7 changes: 5 additions & 2 deletions example/lib/pages/home_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,11 @@ class HomePage extends StatelessWidget {
),
FilledButton(
onPressed: () {
Logger.d("Hello");
FpSnackbar.success(context, message: 'Hello');
FpSnackbar.success(
context,
title: 'Success',
message: 'Hello',
);
},
child: const Text('Show Success Snackbar'),
),
Expand Down
Loading