From 37074ee57665554fe6881d2dd55a4e676dd29da0 Mon Sep 17 00:00:00 2001 From: Ayman Mubarak Date: Sat, 18 Sep 2021 13:50:57 +0200 Subject: [PATCH 1/8] add icon size option --- .dart_tool/package_config.json | 46 +++++----- .dart_tool/package_config_subset | 92 +++++++++---------- .dart_tool/version | 2 +- .packages | 46 +++++----- example/lib/main.dart | 2 +- example/pubspec.lock | 8 +- .../feedback_photo_card_widget.dart | 8 +- .../photo_card_layout_widget.dart | 9 +- pubspec.lock | 8 +- 9 files changed, 117 insertions(+), 104 deletions(-) diff --git a/.dart_tool/package_config.json b/.dart_tool/package_config.json index 349904d..5df41f5 100644 --- a/.dart_tool/package_config.json +++ b/.dart_tool/package_config.json @@ -3,127 +3,127 @@ "packages": [ { "name": "async", - "rootUri": "file:///Users/kevinvishal/Documents/Softwares/flutter/.pub-cache/hosted/pub.dartlang.org/async-2.6.1", + "rootUri": "file:///C:/Users/mon/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/async-2.8.1", "packageUri": "lib/", "languageVersion": "2.12" }, { "name": "boolean_selector", - "rootUri": "file:///Users/kevinvishal/Documents/Softwares/flutter/.pub-cache/hosted/pub.dartlang.org/boolean_selector-2.1.0", + "rootUri": "file:///C:/Users/mon/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/boolean_selector-2.1.0", "packageUri": "lib/", "languageVersion": "2.12" }, { "name": "characters", - "rootUri": "file:///Users/kevinvishal/Documents/Softwares/flutter/.pub-cache/hosted/pub.dartlang.org/characters-1.1.0", + "rootUri": "file:///C:/Users/mon/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/characters-1.1.0", "packageUri": "lib/", "languageVersion": "2.12" }, { "name": "charcode", - "rootUri": "file:///Users/kevinvishal/Documents/Softwares/flutter/.pub-cache/hosted/pub.dartlang.org/charcode-1.2.0", + "rootUri": "file:///C:/Users/mon/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/charcode-1.3.1", "packageUri": "lib/", "languageVersion": "2.12" }, { "name": "clock", - "rootUri": "file:///Users/kevinvishal/Documents/Softwares/flutter/.pub-cache/hosted/pub.dartlang.org/clock-1.1.0", + "rootUri": "file:///C:/Users/mon/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/clock-1.1.0", "packageUri": "lib/", "languageVersion": "2.12" }, { "name": "collection", - "rootUri": "file:///Users/kevinvishal/Documents/Softwares/flutter/.pub-cache/hosted/pub.dartlang.org/collection-1.15.0", + "rootUri": "file:///C:/Users/mon/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/collection-1.15.0", "packageUri": "lib/", "languageVersion": "2.12" }, { "name": "fake_async", - "rootUri": "file:///Users/kevinvishal/Documents/Softwares/flutter/.pub-cache/hosted/pub.dartlang.org/fake_async-1.2.0", + "rootUri": "file:///C:/Users/mon/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/fake_async-1.2.0", "packageUri": "lib/", "languageVersion": "2.12" }, { "name": "flutter", - "rootUri": "file:///Users/kevinvishal/Documents/Softwares/flutter/packages/flutter", + "rootUri": "file:///C:/src/flutter/packages/flutter", "packageUri": "lib/", "languageVersion": "2.12" }, { "name": "flutter_test", - "rootUri": "file:///Users/kevinvishal/Documents/Softwares/flutter/packages/flutter_test", + "rootUri": "file:///C:/src/flutter/packages/flutter_test", "packageUri": "lib/", "languageVersion": "2.12" }, { "name": "matcher", - "rootUri": "file:///Users/kevinvishal/Documents/Softwares/flutter/.pub-cache/hosted/pub.dartlang.org/matcher-0.12.10", + "rootUri": "file:///C:/Users/mon/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/matcher-0.12.10", "packageUri": "lib/", "languageVersion": "2.12" }, { "name": "meta", - "rootUri": "file:///Users/kevinvishal/Documents/Softwares/flutter/.pub-cache/hosted/pub.dartlang.org/meta-1.3.0", + "rootUri": "file:///C:/Users/mon/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/meta-1.7.0", "packageUri": "lib/", "languageVersion": "2.12" }, { "name": "path", - "rootUri": "file:///Users/kevinvishal/Documents/Softwares/flutter/.pub-cache/hosted/pub.dartlang.org/path-1.8.0", + "rootUri": "file:///C:/Users/mon/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/path-1.8.0", "packageUri": "lib/", "languageVersion": "2.12" }, { "name": "sky_engine", - "rootUri": "file:///Users/kevinvishal/Documents/Softwares/flutter/bin/cache/pkg/sky_engine", + "rootUri": "file:///C:/src/flutter/bin/cache/pkg/sky_engine", "packageUri": "lib/", "languageVersion": "2.12" }, { "name": "source_span", - "rootUri": "file:///Users/kevinvishal/Documents/Softwares/flutter/.pub-cache/hosted/pub.dartlang.org/source_span-1.8.1", + "rootUri": "file:///C:/Users/mon/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/source_span-1.8.1", "packageUri": "lib/", "languageVersion": "2.12" }, { "name": "stack_trace", - "rootUri": "file:///Users/kevinvishal/Documents/Softwares/flutter/.pub-cache/hosted/pub.dartlang.org/stack_trace-1.10.0", + "rootUri": "file:///C:/Users/mon/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/stack_trace-1.10.0", "packageUri": "lib/", "languageVersion": "2.12" }, { "name": "stream_channel", - "rootUri": "file:///Users/kevinvishal/Documents/Softwares/flutter/.pub-cache/hosted/pub.dartlang.org/stream_channel-2.1.0", + "rootUri": "file:///C:/Users/mon/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/stream_channel-2.1.0", "packageUri": "lib/", "languageVersion": "2.12" }, { "name": "string_scanner", - "rootUri": "file:///Users/kevinvishal/Documents/Softwares/flutter/.pub-cache/hosted/pub.dartlang.org/string_scanner-1.1.0", + "rootUri": "file:///C:/Users/mon/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/string_scanner-1.1.0", "packageUri": "lib/", "languageVersion": "2.12" }, { "name": "term_glyph", - "rootUri": "file:///Users/kevinvishal/Documents/Softwares/flutter/.pub-cache/hosted/pub.dartlang.org/term_glyph-1.2.0", + "rootUri": "file:///C:/Users/mon/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/term_glyph-1.2.0", "packageUri": "lib/", "languageVersion": "2.12" }, { "name": "test_api", - "rootUri": "file:///Users/kevinvishal/Documents/Softwares/flutter/.pub-cache/hosted/pub.dartlang.org/test_api-0.3.0", + "rootUri": "file:///C:/Users/mon/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/test_api-0.4.2", "packageUri": "lib/", "languageVersion": "2.12" }, { "name": "typed_data", - "rootUri": "file:///Users/kevinvishal/Documents/Softwares/flutter/.pub-cache/hosted/pub.dartlang.org/typed_data-1.3.0", + "rootUri": "file:///C:/Users/mon/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/typed_data-1.3.0", "packageUri": "lib/", "languageVersion": "2.12" }, { "name": "vector_math", - "rootUri": "file:///Users/kevinvishal/Documents/Softwares/flutter/.pub-cache/hosted/pub.dartlang.org/vector_math-2.1.0", + "rootUri": "file:///C:/Users/mon/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/vector_math-2.1.0", "packageUri": "lib/", "languageVersion": "2.12" }, @@ -134,7 +134,7 @@ "languageVersion": "2.12" } ], - "generated": "2021-08-08T01:43:50.546221Z", + "generated": "2021-09-18T11:42:59.107456Z", "generator": "pub", - "generatorVersion": "2.13.1" + "generatorVersion": "2.14.0" } diff --git a/.dart_tool/package_config_subset b/.dart_tool/package_config_subset index ed1e8ae..0ab0aad 100644 --- a/.dart_tool/package_config_subset +++ b/.dart_tool/package_config_subset @@ -1,89 +1,89 @@ async 2.12 -file:///Users/kevinvishal/Documents/Softwares/flutter/.pub-cache/hosted/pub.dartlang.org/async-2.6.1/ -file:///Users/kevinvishal/Documents/Softwares/flutter/.pub-cache/hosted/pub.dartlang.org/async-2.6.1/lib/ +file:///C:/Users/mon/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/async-2.8.1/ +file:///C:/Users/mon/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/async-2.8.1/lib/ boolean_selector 2.12 -file:///Users/kevinvishal/Documents/Softwares/flutter/.pub-cache/hosted/pub.dartlang.org/boolean_selector-2.1.0/ -file:///Users/kevinvishal/Documents/Softwares/flutter/.pub-cache/hosted/pub.dartlang.org/boolean_selector-2.1.0/lib/ +file:///C:/Users/mon/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/boolean_selector-2.1.0/ +file:///C:/Users/mon/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/boolean_selector-2.1.0/lib/ characters 2.12 -file:///Users/kevinvishal/Documents/Softwares/flutter/.pub-cache/hosted/pub.dartlang.org/characters-1.1.0/ -file:///Users/kevinvishal/Documents/Softwares/flutter/.pub-cache/hosted/pub.dartlang.org/characters-1.1.0/lib/ +file:///C:/Users/mon/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/characters-1.1.0/ +file:///C:/Users/mon/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/characters-1.1.0/lib/ charcode 2.12 -file:///Users/kevinvishal/Documents/Softwares/flutter/.pub-cache/hosted/pub.dartlang.org/charcode-1.2.0/ -file:///Users/kevinvishal/Documents/Softwares/flutter/.pub-cache/hosted/pub.dartlang.org/charcode-1.2.0/lib/ +file:///C:/Users/mon/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/charcode-1.3.1/ +file:///C:/Users/mon/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/charcode-1.3.1/lib/ clock 2.12 -file:///Users/kevinvishal/Documents/Softwares/flutter/.pub-cache/hosted/pub.dartlang.org/clock-1.1.0/ -file:///Users/kevinvishal/Documents/Softwares/flutter/.pub-cache/hosted/pub.dartlang.org/clock-1.1.0/lib/ +file:///C:/Users/mon/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/clock-1.1.0/ +file:///C:/Users/mon/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/clock-1.1.0/lib/ collection 2.12 -file:///Users/kevinvishal/Documents/Softwares/flutter/.pub-cache/hosted/pub.dartlang.org/collection-1.15.0/ -file:///Users/kevinvishal/Documents/Softwares/flutter/.pub-cache/hosted/pub.dartlang.org/collection-1.15.0/lib/ +file:///C:/Users/mon/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/collection-1.15.0/ +file:///C:/Users/mon/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/collection-1.15.0/lib/ fake_async 2.12 -file:///Users/kevinvishal/Documents/Softwares/flutter/.pub-cache/hosted/pub.dartlang.org/fake_async-1.2.0/ -file:///Users/kevinvishal/Documents/Softwares/flutter/.pub-cache/hosted/pub.dartlang.org/fake_async-1.2.0/lib/ +file:///C:/Users/mon/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/fake_async-1.2.0/ +file:///C:/Users/mon/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/fake_async-1.2.0/lib/ matcher 2.12 -file:///Users/kevinvishal/Documents/Softwares/flutter/.pub-cache/hosted/pub.dartlang.org/matcher-0.12.10/ -file:///Users/kevinvishal/Documents/Softwares/flutter/.pub-cache/hosted/pub.dartlang.org/matcher-0.12.10/lib/ +file:///C:/Users/mon/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/matcher-0.12.10/ +file:///C:/Users/mon/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/matcher-0.12.10/lib/ meta 2.12 -file:///Users/kevinvishal/Documents/Softwares/flutter/.pub-cache/hosted/pub.dartlang.org/meta-1.3.0/ -file:///Users/kevinvishal/Documents/Softwares/flutter/.pub-cache/hosted/pub.dartlang.org/meta-1.3.0/lib/ +file:///C:/Users/mon/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/meta-1.7.0/ +file:///C:/Users/mon/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/meta-1.7.0/lib/ path 2.12 -file:///Users/kevinvishal/Documents/Softwares/flutter/.pub-cache/hosted/pub.dartlang.org/path-1.8.0/ -file:///Users/kevinvishal/Documents/Softwares/flutter/.pub-cache/hosted/pub.dartlang.org/path-1.8.0/lib/ +file:///C:/Users/mon/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/path-1.8.0/ +file:///C:/Users/mon/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/path-1.8.0/lib/ source_span 2.12 -file:///Users/kevinvishal/Documents/Softwares/flutter/.pub-cache/hosted/pub.dartlang.org/source_span-1.8.1/ -file:///Users/kevinvishal/Documents/Softwares/flutter/.pub-cache/hosted/pub.dartlang.org/source_span-1.8.1/lib/ +file:///C:/Users/mon/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/source_span-1.8.1/ +file:///C:/Users/mon/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/source_span-1.8.1/lib/ stack_trace 2.12 -file:///Users/kevinvishal/Documents/Softwares/flutter/.pub-cache/hosted/pub.dartlang.org/stack_trace-1.10.0/ -file:///Users/kevinvishal/Documents/Softwares/flutter/.pub-cache/hosted/pub.dartlang.org/stack_trace-1.10.0/lib/ +file:///C:/Users/mon/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/stack_trace-1.10.0/ +file:///C:/Users/mon/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/stack_trace-1.10.0/lib/ stream_channel 2.12 -file:///Users/kevinvishal/Documents/Softwares/flutter/.pub-cache/hosted/pub.dartlang.org/stream_channel-2.1.0/ -file:///Users/kevinvishal/Documents/Softwares/flutter/.pub-cache/hosted/pub.dartlang.org/stream_channel-2.1.0/lib/ +file:///C:/Users/mon/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/stream_channel-2.1.0/ +file:///C:/Users/mon/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/stream_channel-2.1.0/lib/ string_scanner 2.12 -file:///Users/kevinvishal/Documents/Softwares/flutter/.pub-cache/hosted/pub.dartlang.org/string_scanner-1.1.0/ -file:///Users/kevinvishal/Documents/Softwares/flutter/.pub-cache/hosted/pub.dartlang.org/string_scanner-1.1.0/lib/ +file:///C:/Users/mon/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/string_scanner-1.1.0/ +file:///C:/Users/mon/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/string_scanner-1.1.0/lib/ term_glyph 2.12 -file:///Users/kevinvishal/Documents/Softwares/flutter/.pub-cache/hosted/pub.dartlang.org/term_glyph-1.2.0/ -file:///Users/kevinvishal/Documents/Softwares/flutter/.pub-cache/hosted/pub.dartlang.org/term_glyph-1.2.0/lib/ +file:///C:/Users/mon/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/term_glyph-1.2.0/ +file:///C:/Users/mon/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/term_glyph-1.2.0/lib/ test_api 2.12 -file:///Users/kevinvishal/Documents/Softwares/flutter/.pub-cache/hosted/pub.dartlang.org/test_api-0.3.0/ -file:///Users/kevinvishal/Documents/Softwares/flutter/.pub-cache/hosted/pub.dartlang.org/test_api-0.3.0/lib/ +file:///C:/Users/mon/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/test_api-0.4.2/ +file:///C:/Users/mon/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/test_api-0.4.2/lib/ typed_data 2.12 -file:///Users/kevinvishal/Documents/Softwares/flutter/.pub-cache/hosted/pub.dartlang.org/typed_data-1.3.0/ -file:///Users/kevinvishal/Documents/Softwares/flutter/.pub-cache/hosted/pub.dartlang.org/typed_data-1.3.0/lib/ +file:///C:/Users/mon/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/typed_data-1.3.0/ +file:///C:/Users/mon/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/typed_data-1.3.0/lib/ vector_math 2.12 -file:///Users/kevinvishal/Documents/Softwares/flutter/.pub-cache/hosted/pub.dartlang.org/vector_math-2.1.0/ -file:///Users/kevinvishal/Documents/Softwares/flutter/.pub-cache/hosted/pub.dartlang.org/vector_math-2.1.0/lib/ +file:///C:/Users/mon/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/vector_math-2.1.0/ +file:///C:/Users/mon/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/vector_math-2.1.0/lib/ +photo_card_swiper +2.12 +file:///C:/Users/mon/source/photo_card_swiper/ +file:///C:/Users/mon/source/photo_card_swiper/lib/ sky_engine 2.12 -file:///Users/kevinvishal/Documents/Softwares/flutter/bin/cache/pkg/sky_engine/ -file:///Users/kevinvishal/Documents/Softwares/flutter/bin/cache/pkg/sky_engine/lib/ +file:///C:/src/flutter/bin/cache/pkg/sky_engine/ +file:///C:/src/flutter/bin/cache/pkg/sky_engine/lib/ flutter 2.12 -file:///Users/kevinvishal/Documents/Softwares/flutter/packages/flutter/ -file:///Users/kevinvishal/Documents/Softwares/flutter/packages/flutter/lib/ +file:///C:/src/flutter/packages/flutter/ +file:///C:/src/flutter/packages/flutter/lib/ flutter_test 2.12 -file:///Users/kevinvishal/Documents/Softwares/flutter/packages/flutter_test/ -file:///Users/kevinvishal/Documents/Softwares/flutter/packages/flutter_test/lib/ -photo_card_swiper -2.12 -file:///Users/kevinvishal/Documents/Workspace/ReferenceWorspace/AppCodes/FlutterApps/udemy/MyPubPackages/photo_card_swiper/ -file:///Users/kevinvishal/Documents/Workspace/ReferenceWorspace/AppCodes/FlutterApps/udemy/MyPubPackages/photo_card_swiper/lib/ +file:///C:/src/flutter/packages/flutter_test/ +file:///C:/src/flutter/packages/flutter_test/lib/ 2 diff --git a/.dart_tool/version b/.dart_tool/version index fae692e..fad066f 100644 --- a/.dart_tool/version +++ b/.dart_tool/version @@ -1 +1 @@ -2.2.1 \ No newline at end of file +2.5.0 \ No newline at end of file diff --git a/.packages b/.packages index e427d30..a92fac7 100644 --- a/.packages +++ b/.packages @@ -1,28 +1,28 @@ # This file is deprecated. Tools should instead consume -# `.dart_tools/package_config.json`. +# `.dart_tool/package_config.json`. # # For more info see: https://dart.dev/go/dot-packages-deprecation # -# Generated by pub on 2021-08-08 07:13:50.528188. -async:file:///Users/kevinvishal/Documents/Softwares/flutter/.pub-cache/hosted/pub.dartlang.org/async-2.6.1/lib/ -boolean_selector:file:///Users/kevinvishal/Documents/Softwares/flutter/.pub-cache/hosted/pub.dartlang.org/boolean_selector-2.1.0/lib/ -characters:file:///Users/kevinvishal/Documents/Softwares/flutter/.pub-cache/hosted/pub.dartlang.org/characters-1.1.0/lib/ -charcode:file:///Users/kevinvishal/Documents/Softwares/flutter/.pub-cache/hosted/pub.dartlang.org/charcode-1.2.0/lib/ -clock:file:///Users/kevinvishal/Documents/Softwares/flutter/.pub-cache/hosted/pub.dartlang.org/clock-1.1.0/lib/ -collection:file:///Users/kevinvishal/Documents/Softwares/flutter/.pub-cache/hosted/pub.dartlang.org/collection-1.15.0/lib/ -fake_async:file:///Users/kevinvishal/Documents/Softwares/flutter/.pub-cache/hosted/pub.dartlang.org/fake_async-1.2.0/lib/ -flutter:file:///Users/kevinvishal/Documents/Softwares/flutter/packages/flutter/lib/ -flutter_test:file:///Users/kevinvishal/Documents/Softwares/flutter/packages/flutter_test/lib/ -matcher:file:///Users/kevinvishal/Documents/Softwares/flutter/.pub-cache/hosted/pub.dartlang.org/matcher-0.12.10/lib/ -meta:file:///Users/kevinvishal/Documents/Softwares/flutter/.pub-cache/hosted/pub.dartlang.org/meta-1.3.0/lib/ -path:file:///Users/kevinvishal/Documents/Softwares/flutter/.pub-cache/hosted/pub.dartlang.org/path-1.8.0/lib/ -sky_engine:file:///Users/kevinvishal/Documents/Softwares/flutter/bin/cache/pkg/sky_engine/lib/ -source_span:file:///Users/kevinvishal/Documents/Softwares/flutter/.pub-cache/hosted/pub.dartlang.org/source_span-1.8.1/lib/ -stack_trace:file:///Users/kevinvishal/Documents/Softwares/flutter/.pub-cache/hosted/pub.dartlang.org/stack_trace-1.10.0/lib/ -stream_channel:file:///Users/kevinvishal/Documents/Softwares/flutter/.pub-cache/hosted/pub.dartlang.org/stream_channel-2.1.0/lib/ -string_scanner:file:///Users/kevinvishal/Documents/Softwares/flutter/.pub-cache/hosted/pub.dartlang.org/string_scanner-1.1.0/lib/ -term_glyph:file:///Users/kevinvishal/Documents/Softwares/flutter/.pub-cache/hosted/pub.dartlang.org/term_glyph-1.2.0/lib/ -test_api:file:///Users/kevinvishal/Documents/Softwares/flutter/.pub-cache/hosted/pub.dartlang.org/test_api-0.3.0/lib/ -typed_data:file:///Users/kevinvishal/Documents/Softwares/flutter/.pub-cache/hosted/pub.dartlang.org/typed_data-1.3.0/lib/ -vector_math:file:///Users/kevinvishal/Documents/Softwares/flutter/.pub-cache/hosted/pub.dartlang.org/vector_math-2.1.0/lib/ +# Generated by pub on 2021-09-18 13:42:59.089502. +async:file:///C:/Users/mon/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/async-2.8.1/lib/ +boolean_selector:file:///C:/Users/mon/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/boolean_selector-2.1.0/lib/ +characters:file:///C:/Users/mon/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/characters-1.1.0/lib/ +charcode:file:///C:/Users/mon/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/charcode-1.3.1/lib/ +clock:file:///C:/Users/mon/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/clock-1.1.0/lib/ +collection:file:///C:/Users/mon/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/collection-1.15.0/lib/ +fake_async:file:///C:/Users/mon/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/fake_async-1.2.0/lib/ +flutter:file:///C:/src/flutter/packages/flutter/lib/ +flutter_test:file:///C:/src/flutter/packages/flutter_test/lib/ +matcher:file:///C:/Users/mon/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/matcher-0.12.10/lib/ +meta:file:///C:/Users/mon/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/meta-1.7.0/lib/ +path:file:///C:/Users/mon/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/path-1.8.0/lib/ +sky_engine:file:///C:/src/flutter/bin/cache/pkg/sky_engine/lib/ +source_span:file:///C:/Users/mon/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/source_span-1.8.1/lib/ +stack_trace:file:///C:/Users/mon/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/stack_trace-1.10.0/lib/ +stream_channel:file:///C:/Users/mon/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/stream_channel-2.1.0/lib/ +string_scanner:file:///C:/Users/mon/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/string_scanner-1.1.0/lib/ +term_glyph:file:///C:/Users/mon/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/term_glyph-1.2.0/lib/ +test_api:file:///C:/Users/mon/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/test_api-0.4.2/lib/ +typed_data:file:///C:/Users/mon/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/typed_data-1.3.0/lib/ +vector_math:file:///C:/Users/mon/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/vector_math-2.1.0/lib/ photo_card_swiper:lib/ diff --git a/example/lib/main.dart b/example/lib/main.dart index 730a192..410be56 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -1,5 +1,5 @@ -import 'package:example/example_page_widget.dart'; import 'package:flutter/material.dart'; +import 'example_page_widget.dart'; void main() { runApp(MaterialApp( diff --git a/example/pubspec.lock b/example/pubspec.lock index 5a033a9..6a21ad1 100644 --- a/example/pubspec.lock +++ b/example/pubspec.lock @@ -7,7 +7,7 @@ packages: name: async url: "https://pub.dartlang.org" source: hosted - version: "2.6.1" + version: "2.8.1" boolean_selector: dependency: transitive description: @@ -28,7 +28,7 @@ packages: name: charcode url: "https://pub.dartlang.org" source: hosted - version: "1.2.0" + version: "1.3.1" clock: dependency: transitive description: @@ -80,7 +80,7 @@ packages: name: meta url: "https://pub.dartlang.org" source: hosted - version: "1.3.0" + version: "1.7.0" path: dependency: transitive description: @@ -141,7 +141,7 @@ packages: name: test_api url: "https://pub.dartlang.org" source: hosted - version: "0.3.0" + version: "0.4.2" typed_data: dependency: transitive description: diff --git a/lib/custom_widgets/feedback_photo_card_widget.dart b/lib/custom_widgets/feedback_photo_card_widget.dart index 2fc2900..4f36d98 100644 --- a/lib/custom_widgets/feedback_photo_card_widget.dart +++ b/lib/custom_widgets/feedback_photo_card_widget.dart @@ -18,6 +18,7 @@ class FeedbackPhotoCardWidget extends StatelessWidget { final Color? imageBackgroundColor; final FeedbackPhotoCardValueNotifier feedbackPhotoCardValueNotifier; final IconData? leftButtonIcon; + final double? buttonIconSize; final IconData? centerButtonIcon; final IconData? rightButtonIcon; final Color? leftButtonIconColor; @@ -47,6 +48,7 @@ class FeedbackPhotoCardWidget extends StatelessWidget { this.rightButtonIconColor, this.rightButtonBackgroundColor, Key? key, + this.buttonIconSize = 55, }) : super(key: key); @override @@ -107,6 +109,7 @@ class FeedbackPhotoCardWidget extends StatelessWidget { case CardActionDirection.cardCenterAction: return CardActionSpecifcOverlayWidget( key: UniqueKey(), + iconSize: buttonIconSize ?? 55, buttonIconColor: centerButtonIconColor ?? Colors.lightBlue[600], buttonIcon: centerButtonIcon ?? Icons.favorite, @@ -119,6 +122,7 @@ class FeedbackPhotoCardWidget extends StatelessWidget { rightButtonIconColor ?? Colors.lightGreen[700], buttonIcon: rightButtonIcon ?? Icons.check, isVisible: true, + iconSize: buttonIconSize ?? 55, ); default: return Container(); @@ -199,11 +203,13 @@ class CardActionSpecifcOverlayWidget extends StatelessWidget { required this.buttonIconColor, required this.buttonIcon, required this.isVisible, + this.iconSize = 55, }) : super(key: key); final Color? buttonIconColor; final IconData buttonIcon; final bool isVisible; + final double iconSize; @override Widget build(BuildContext context) { @@ -229,7 +235,7 @@ class CardActionSpecifcOverlayWidget extends StatelessWidget { child: Icon( buttonIcon, color: buttonIconColor ?? Colors.red[800], - size: 55.0, + size: iconSize, ), ), ), diff --git a/lib/custom_widgets/photo_card_layout_widget.dart b/lib/custom_widgets/photo_card_layout_widget.dart index 561d609..90d2861 100644 --- a/lib/custom_widgets/photo_card_layout_widget.dart +++ b/lib/custom_widgets/photo_card_layout_widget.dart @@ -20,6 +20,7 @@ class PhotoCardLayoutWidget extends StatefulWidget { final IconData? leftButtonIcon; final IconData? centerButtonIcon; final IconData? rightButtonIcon; + final double? buttonIconSize; final Color? leftButtonIconColor; final Color? leftButtonBackgroundColor; final Color? centerButtonIconColor; @@ -59,6 +60,7 @@ class PhotoCardLayoutWidget extends StatefulWidget { this.rightButtonAction, this.onCardTap, Key? key, + this.buttonIconSize, }) : super(key: key); @override @@ -116,6 +118,7 @@ class _PhotoCardLayoutWidgetState extends State { child: Stack( children: [ CardActionSpecifcOverlayWidget( + iconSize: widget.buttonIconSize ?? 55, key: UniqueKey(), buttonIconColor: widget.leftButtonIconColor ?? Colors.red[800], @@ -123,6 +126,7 @@ class _PhotoCardLayoutWidgetState extends State { isVisible: widget.isLeftOverlayShown, ), CardActionSpecifcOverlayWidget( + iconSize: widget.buttonIconSize ?? 55, key: UniqueKey(), buttonIconColor: widget.centerButtonIconColor ?? Colors.lightBlue[600], @@ -130,6 +134,7 @@ class _PhotoCardLayoutWidgetState extends State { isVisible: widget.isCenterOverlayShown, ), CardActionSpecifcOverlayWidget( + iconSize: widget.buttonIconSize ?? 55, key: UniqueKey(), buttonIconColor: widget.rightButtonIconColor ?? Colors.lightGreen[700], @@ -218,11 +223,13 @@ class CardActionSpecifcOverlayWidget extends StatelessWidget { required this.buttonIconColor, required this.buttonIcon, required this.isVisible, + required this.iconSize, }) : super(key: key); final Color? buttonIconColor; final IconData buttonIcon; final bool isVisible; + final double? iconSize; @override Widget build(BuildContext context) { @@ -248,7 +255,7 @@ class CardActionSpecifcOverlayWidget extends StatelessWidget { child: Icon( buttonIcon, color: buttonIconColor, - size: 55.0, + size: iconSize ?? 55.0, ), ), ), diff --git a/pubspec.lock b/pubspec.lock index 010beab..f9203a9 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -7,7 +7,7 @@ packages: name: async url: "https://pub.dartlang.org" source: hosted - version: "2.6.1" + version: "2.8.1" boolean_selector: dependency: transitive description: @@ -28,7 +28,7 @@ packages: name: charcode url: "https://pub.dartlang.org" source: hosted - version: "1.2.0" + version: "1.3.1" clock: dependency: transitive description: @@ -73,7 +73,7 @@ packages: name: meta url: "https://pub.dartlang.org" source: hosted - version: "1.3.0" + version: "1.7.0" path: dependency: transitive description: @@ -127,7 +127,7 @@ packages: name: test_api url: "https://pub.dartlang.org" source: hosted - version: "0.3.0" + version: "0.4.2" typed_data: dependency: transitive description: From 9f918bb74a0f8aa89cb141e4b99f4668c0f69de1 Mon Sep 17 00:00:00 2001 From: Ayman Mubarak Date: Sat, 18 Sep 2021 13:57:31 +0200 Subject: [PATCH 2/8] ok --- lib/photo_card_swiper.dart | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/photo_card_swiper.dart b/lib/photo_card_swiper.dart index e07eba5..427f557 100644 --- a/lib/photo_card_swiper.dart +++ b/lib/photo_card_swiper.dart @@ -29,6 +29,7 @@ class PhotoCardSwiper extends StatefulWidget { final IconData? leftButtonIcon; final IconData? centerButtonIcon; final IconData? rightButtonIcon; + final double? buttonIconSize; final Color? leftButtonIconColor; final Color? leftButtonBackgroundColor; final Color? centerButtonIconColor; @@ -62,6 +63,7 @@ class PhotoCardSwiper extends StatefulWidget { this.centerButtonAction, this.rightButtonAction, this.onCardTap, + this.buttonIconSize, }); @override _PhotoCardSwiperState createState() => _PhotoCardSwiperState(); @@ -179,6 +181,7 @@ class _PhotoCardSwiperState extends State { cardHeight: _updatedCardHeight, cardWidth: _cardWidth, photoCard: _updatedPhoto, + buttonIconSize: widget.buttonIconSize, leftButtonIcon: widget.leftButtonIcon, rightButtonIcon: widget.rightButtonIcon, centerButtonIcon: widget.centerButtonIcon, @@ -208,6 +211,7 @@ class _PhotoCardSwiperState extends State { hideTitleText: widget.hideTitleText, hideDescriptionText: widget.hideDescriptionText, photoCard: _updatedPhoto, + buttonIconSize: widget.buttonIconSize, leftButtonIcon: widget.leftButtonIcon, rightButtonIcon: widget.rightButtonIcon, centerButtonIcon: widget.centerButtonIcon, From 06c7305fc7d02cb7e6a608d1938fbdca10db3b1c Mon Sep 17 00:00:00 2001 From: Ayman Mubarak Date: Sat, 18 Sep 2021 14:08:50 +0200 Subject: [PATCH 3/8] ok --- .dart_tool/package_config.json | 2 +- .packages | 2 +- example/pubspec.lock | 2 +- pubspec.yaml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.dart_tool/package_config.json b/.dart_tool/package_config.json index 5df41f5..8ec5f29 100644 --- a/.dart_tool/package_config.json +++ b/.dart_tool/package_config.json @@ -134,7 +134,7 @@ "languageVersion": "2.12" } ], - "generated": "2021-09-18T11:42:59.107456Z", + "generated": "2021-09-18T12:08:43.510312Z", "generator": "pub", "generatorVersion": "2.14.0" } diff --git a/.packages b/.packages index a92fac7..724ddd6 100644 --- a/.packages +++ b/.packages @@ -3,7 +3,7 @@ # # For more info see: https://dart.dev/go/dot-packages-deprecation # -# Generated by pub on 2021-09-18 13:42:59.089502. +# Generated by pub on 2021-09-18 14:08:43.489372. async:file:///C:/Users/mon/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/async-2.8.1/lib/ boolean_selector:file:///C:/Users/mon/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/boolean_selector-2.1.0/lib/ characters:file:///C:/Users/mon/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/characters-1.1.0/lib/ diff --git a/example/pubspec.lock b/example/pubspec.lock index 6a21ad1..fb9c722 100644 --- a/example/pubspec.lock +++ b/example/pubspec.lock @@ -94,7 +94,7 @@ packages: path: ".." relative: true source: path - version: "0.0.6" + version: "0.0.7" sky_engine: dependency: transitive description: flutter diff --git a/pubspec.yaml b/pubspec.yaml index 9c90319..a1e34f7 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: photo_card_swiper description: A simple flutter package for creating a swiping card layout for list of photos. -version: 0.0.6 +version: 0.0.7 homepage: https://github.com/TeaTalkInternal/photo_card_swiper environment: From bf949389e08bbf13623052bdfa0db6446d6d5936 Mon Sep 17 00:00:00 2001 From: Ayman Mubarak Date: Sat, 18 Sep 2021 14:36:28 +0200 Subject: [PATCH 4/8] ok --- .../gradle/wrapper/gradle-wrapper.properties | 2 +- example/lib/example_page_widget.dart | 2 +- .../feedback_photo_card_widget.dart | 8 +----- .../photo_card_layout_widget.dart | 26 +++++++------------ lib/photo_card_swiper.dart | 2 -- 5 files changed, 13 insertions(+), 27 deletions(-) diff --git a/example/android/gradle/wrapper/gradle-wrapper.properties b/example/android/gradle/wrapper/gradle-wrapper.properties index bc6a58a..8b37767 100644 --- a/example/android/gradle/wrapper/gradle-wrapper.properties +++ b/example/android/gradle/wrapper/gradle-wrapper.properties @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-6.7.1-bin.zip \ No newline at end of file diff --git a/example/lib/example_page_widget.dart b/example/lib/example_page_widget.dart index 6a0395e..cdf95a9 100644 --- a/example/lib/example_page_widget.dart +++ b/example/lib/example_page_widget.dart @@ -98,7 +98,7 @@ class _ExamplePageWidgetState extends State { imageScaleType: BoxFit.cover, imageBackgroundColor: Colors.grey, leftButtonIcon: Icons.close, - rightButtonIcon: Icons.check, + rightButtonIcon: Icons.shopping_cart, centerButtonIcon: Icons.favorite, leftButtonBackgroundColor: Colors.red[100], leftButtonIconColor: Colors.red[600], diff --git a/lib/custom_widgets/feedback_photo_card_widget.dart b/lib/custom_widgets/feedback_photo_card_widget.dart index 4f36d98..d03179f 100644 --- a/lib/custom_widgets/feedback_photo_card_widget.dart +++ b/lib/custom_widgets/feedback_photo_card_widget.dart @@ -18,7 +18,6 @@ class FeedbackPhotoCardWidget extends StatelessWidget { final Color? imageBackgroundColor; final FeedbackPhotoCardValueNotifier feedbackPhotoCardValueNotifier; final IconData? leftButtonIcon; - final double? buttonIconSize; final IconData? centerButtonIcon; final IconData? rightButtonIcon; final Color? leftButtonIconColor; @@ -48,7 +47,6 @@ class FeedbackPhotoCardWidget extends StatelessWidget { this.rightButtonIconColor, this.rightButtonBackgroundColor, Key? key, - this.buttonIconSize = 55, }) : super(key: key); @override @@ -109,7 +107,6 @@ class FeedbackPhotoCardWidget extends StatelessWidget { case CardActionDirection.cardCenterAction: return CardActionSpecifcOverlayWidget( key: UniqueKey(), - iconSize: buttonIconSize ?? 55, buttonIconColor: centerButtonIconColor ?? Colors.lightBlue[600], buttonIcon: centerButtonIcon ?? Icons.favorite, @@ -122,7 +119,6 @@ class FeedbackPhotoCardWidget extends StatelessWidget { rightButtonIconColor ?? Colors.lightGreen[700], buttonIcon: rightButtonIcon ?? Icons.check, isVisible: true, - iconSize: buttonIconSize ?? 55, ); default: return Container(); @@ -203,13 +199,11 @@ class CardActionSpecifcOverlayWidget extends StatelessWidget { required this.buttonIconColor, required this.buttonIcon, required this.isVisible, - this.iconSize = 55, }) : super(key: key); final Color? buttonIconColor; final IconData buttonIcon; final bool isVisible; - final double iconSize; @override Widget build(BuildContext context) { @@ -235,7 +229,7 @@ class CardActionSpecifcOverlayWidget extends StatelessWidget { child: Icon( buttonIcon, color: buttonIconColor ?? Colors.red[800], - size: iconSize, + size: 55, ), ), ), diff --git a/lib/custom_widgets/photo_card_layout_widget.dart b/lib/custom_widgets/photo_card_layout_widget.dart index 90d2861..04088d8 100644 --- a/lib/custom_widgets/photo_card_layout_widget.dart +++ b/lib/custom_widgets/photo_card_layout_widget.dart @@ -20,7 +20,6 @@ class PhotoCardLayoutWidget extends StatefulWidget { final IconData? leftButtonIcon; final IconData? centerButtonIcon; final IconData? rightButtonIcon; - final double? buttonIconSize; final Color? leftButtonIconColor; final Color? leftButtonBackgroundColor; final Color? centerButtonIconColor; @@ -60,7 +59,6 @@ class PhotoCardLayoutWidget extends StatefulWidget { this.rightButtonAction, this.onCardTap, Key? key, - this.buttonIconSize, }) : super(key: key); @override @@ -118,7 +116,6 @@ class _PhotoCardLayoutWidgetState extends State { child: Stack( children: [ CardActionSpecifcOverlayWidget( - iconSize: widget.buttonIconSize ?? 55, key: UniqueKey(), buttonIconColor: widget.leftButtonIconColor ?? Colors.red[800], @@ -126,7 +123,6 @@ class _PhotoCardLayoutWidgetState extends State { isVisible: widget.isLeftOverlayShown, ), CardActionSpecifcOverlayWidget( - iconSize: widget.buttonIconSize ?? 55, key: UniqueKey(), buttonIconColor: widget.centerButtonIconColor ?? Colors.lightBlue[600], @@ -134,7 +130,6 @@ class _PhotoCardLayoutWidgetState extends State { isVisible: widget.isCenterOverlayShown, ), CardActionSpecifcOverlayWidget( - iconSize: widget.buttonIconSize ?? 55, key: UniqueKey(), buttonIconColor: widget.rightButtonIconColor ?? Colors.lightGreen[700], @@ -223,13 +218,11 @@ class CardActionSpecifcOverlayWidget extends StatelessWidget { required this.buttonIconColor, required this.buttonIcon, required this.isVisible, - required this.iconSize, }) : super(key: key); final Color? buttonIconColor; final IconData buttonIcon; final bool isVisible; - final double? iconSize; @override Widget build(BuildContext context) { @@ -255,7 +248,7 @@ class CardActionSpecifcOverlayWidget extends StatelessWidget { child: Icon( buttonIcon, color: buttonIconColor, - size: iconSize ?? 55.0, + size: 55.0, ), ), ), @@ -295,13 +288,14 @@ class CenterButtonWidget extends StatelessWidget { child: InkWell( splashColor: Colors.white, child: SizedBox( - width: 85, - height: 85, - child: Icon( - centerButtonIcon ?? Icons.favorite, - color: centerButtonIconColor ?? Colors.lightBlue[600], - size: 50, - )), + width: 85, + height: 85, + child: Icon( + centerButtonIcon ?? Icons.favorite, + color: centerButtonIconColor ?? Colors.lightBlue[600], + size: 55, + ), + ), onTap: () { if (centerButtonAction != null) { centerButtonAction!(); @@ -347,7 +341,7 @@ class RightButtonWidget extends StatelessWidget { child: Icon( rightButtonIcon ?? Icons.check, color: rightButtonIconColor ?? Colors.lightGreen[700], - size: 50, + size: 35, )), onTap: () { if (rightButtonAction != null) { diff --git a/lib/photo_card_swiper.dart b/lib/photo_card_swiper.dart index 427f557..dc45967 100644 --- a/lib/photo_card_swiper.dart +++ b/lib/photo_card_swiper.dart @@ -181,7 +181,6 @@ class _PhotoCardSwiperState extends State { cardHeight: _updatedCardHeight, cardWidth: _cardWidth, photoCard: _updatedPhoto, - buttonIconSize: widget.buttonIconSize, leftButtonIcon: widget.leftButtonIcon, rightButtonIcon: widget.rightButtonIcon, centerButtonIcon: widget.centerButtonIcon, @@ -211,7 +210,6 @@ class _PhotoCardSwiperState extends State { hideTitleText: widget.hideTitleText, hideDescriptionText: widget.hideDescriptionText, photoCard: _updatedPhoto, - buttonIconSize: widget.buttonIconSize, leftButtonIcon: widget.leftButtonIcon, rightButtonIcon: widget.rightButtonIcon, centerButtonIcon: widget.centerButtonIcon, From 5a8bf66d631c5e9e7fa4a9fddba58c45b9e88810 Mon Sep 17 00:00:00 2001 From: Ayman Mubarak Date: Sat, 18 Sep 2021 14:38:35 +0200 Subject: [PATCH 5/8] ok --- lib/photo_card_swiper.dart | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/photo_card_swiper.dart b/lib/photo_card_swiper.dart index dc45967..e07eba5 100644 --- a/lib/photo_card_swiper.dart +++ b/lib/photo_card_swiper.dart @@ -29,7 +29,6 @@ class PhotoCardSwiper extends StatefulWidget { final IconData? leftButtonIcon; final IconData? centerButtonIcon; final IconData? rightButtonIcon; - final double? buttonIconSize; final Color? leftButtonIconColor; final Color? leftButtonBackgroundColor; final Color? centerButtonIconColor; @@ -63,7 +62,6 @@ class PhotoCardSwiper extends StatefulWidget { this.centerButtonAction, this.rightButtonAction, this.onCardTap, - this.buttonIconSize, }); @override _PhotoCardSwiperState createState() => _PhotoCardSwiperState(); From 44877a5ad74832a1739da745e2a4972f56fdcc98 Mon Sep 17 00:00:00 2001 From: Ayman Mubarak Date: Sat, 23 Oct 2021 12:04:37 +0200 Subject: [PATCH 6/8] ok --- lib/photo_card_swiper.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/photo_card_swiper.dart b/lib/photo_card_swiper.dart index e07eba5..09a2ed0 100644 --- a/lib/photo_card_swiper.dart +++ b/lib/photo_card_swiper.dart @@ -262,7 +262,7 @@ class _PhotoCardSwiperState extends State { _likeCard(forIndex: _index); _hideAllPhotoCardOverlayWidgets(); if (widget.rightButtonAction != null) { - widget.rightButtonAction!(); + widget.rightButtonAction!(_index); } }); }, From 2aaaf3498c6ec38ed83dc8e772ec896903bd6ec3 Mon Sep 17 00:00:00 2001 From: Ayman Mubarak Date: Sat, 23 Oct 2021 12:09:10 +0200 Subject: [PATCH 7/8] Revert "ok" This reverts commit 5a8bf66d631c5e9e7fa4a9fddba58c45b9e88810. --- lib/photo_card_swiper.dart | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/photo_card_swiper.dart b/lib/photo_card_swiper.dart index 09a2ed0..727a251 100644 --- a/lib/photo_card_swiper.dart +++ b/lib/photo_card_swiper.dart @@ -29,6 +29,7 @@ class PhotoCardSwiper extends StatefulWidget { final IconData? leftButtonIcon; final IconData? centerButtonIcon; final IconData? rightButtonIcon; + final double? buttonIconSize; final Color? leftButtonIconColor; final Color? leftButtonBackgroundColor; final Color? centerButtonIconColor; @@ -62,6 +63,7 @@ class PhotoCardSwiper extends StatefulWidget { this.centerButtonAction, this.rightButtonAction, this.onCardTap, + this.buttonIconSize, }); @override _PhotoCardSwiperState createState() => _PhotoCardSwiperState(); From e0676a97a27b03cb0b0ab373fa0af53061caba76 Mon Sep 17 00:00:00 2001 From: Ayman Mubarak Date: Sat, 23 Oct 2021 12:09:41 +0200 Subject: [PATCH 8/8] Revert "ok" This reverts commit 44877a5ad74832a1739da745e2a4972f56fdcc98. --- lib/photo_card_swiper.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/photo_card_swiper.dart b/lib/photo_card_swiper.dart index 727a251..dc45967 100644 --- a/lib/photo_card_swiper.dart +++ b/lib/photo_card_swiper.dart @@ -264,7 +264,7 @@ class _PhotoCardSwiperState extends State { _likeCard(forIndex: _index); _hideAllPhotoCardOverlayWidgets(); if (widget.rightButtonAction != null) { - widget.rightButtonAction!(_index); + widget.rightButtonAction!(); } }); },