diff --git a/CHANGELOG.md b/CHANGELOG.md
index 8205ac4..3747ade 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,6 @@
+### 1.3.0
+* Flutter 3.10 compatibility
+
### 1.2.2
* Remove focus from search field when scrolling selector
diff --git a/android/.gitignore b/android/.gitignore
deleted file mode 100644
index 161bdcd..0000000
--- a/android/.gitignore
+++ /dev/null
@@ -1,9 +0,0 @@
-*.iml
-.gradle
-/local.properties
-/.idea/workspace.xml
-/.idea/libraries
-.DS_Store
-/build
-/captures
-.cxx
diff --git a/android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java b/android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java
deleted file mode 100644
index 7c5d4c5..0000000
--- a/android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java
+++ /dev/null
@@ -1,27 +0,0 @@
-package io.flutter.plugins;
-
-import io.flutter.plugin.common.PluginRegistry;
-import dev.flutter.plugins.integration_test.IntegrationTestPlugin;
-import io.flutter.plugins.urllauncher.UrlLauncherPlugin;
-
-/**
- * Generated file. Do not edit.
- */
-public final class GeneratedPluginRegistrant {
- public static void registerWith(PluginRegistry registry) {
- if (alreadyRegisteredWith(registry)) {
- return;
- }
- IntegrationTestPlugin.registerWith(registry.registrarFor("dev.flutter.plugins.integration_test.IntegrationTestPlugin"));
- UrlLauncherPlugin.registerWith(registry.registrarFor("io.flutter.plugins.urllauncher.UrlLauncherPlugin"));
- }
-
- private static boolean alreadyRegisteredWith(PluginRegistry registry) {
- final String key = GeneratedPluginRegistrant.class.getCanonicalName();
- if (registry.hasPlugin(key)) {
- return true;
- }
- registry.registrarFor(key);
- return false;
- }
-}
diff --git a/android/build.gradle b/android/build.gradle
deleted file mode 100644
index 350a7ae..0000000
--- a/android/build.gradle
+++ /dev/null
@@ -1,46 +0,0 @@
-group 'com.example.giphy_selector'
-version '1.0-SNAPSHOT'
-
-buildscript {
- ext.kotlin_version = '1.6.10'
- repositories {
- google()
- mavenCentral()
- }
-
- dependencies {
- classpath 'com.android.tools.build:gradle:7.1.2'
- classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
- }
-}
-
-allprojects {
- repositories {
- google()
- mavenCentral()
- }
-}
-
-apply plugin: 'com.android.library'
-apply plugin: 'kotlin-android'
-
-android {
- compileSdkVersion 31
-
- compileOptions {
- sourceCompatibility JavaVersion.VERSION_1_8
- targetCompatibility JavaVersion.VERSION_1_8
- }
-
- kotlinOptions {
- jvmTarget = '1.8'
- }
-
- sourceSets {
- main.java.srcDirs += 'src/main/kotlin'
- }
-
- defaultConfig {
- minSdkVersion 16
- }
-}
diff --git a/android/settings.gradle b/android/settings.gradle
deleted file mode 100644
index 7cbee23..0000000
--- a/android/settings.gradle
+++ /dev/null
@@ -1 +0,0 @@
-rootProject.name = 'giphy_selector'
diff --git a/android/src/main/AndroidManifest.xml b/android/src/main/AndroidManifest.xml
deleted file mode 100644
index 20772b5..0000000
--- a/android/src/main/AndroidManifest.xml
+++ /dev/null
@@ -1,3 +0,0 @@
-
-
diff --git a/android/src/main/kotlin/com/example/giphy_selector/GiphySelectorPlugin.kt b/android/src/main/kotlin/com/example/giphy_selector/GiphySelectorPlugin.kt
deleted file mode 100644
index dd5163f..0000000
--- a/android/src/main/kotlin/com/example/giphy_selector/GiphySelectorPlugin.kt
+++ /dev/null
@@ -1,35 +0,0 @@
-package com.example.giphy_selector
-
-import androidx.annotation.NonNull
-
-import io.flutter.embedding.engine.plugins.FlutterPlugin
-import io.flutter.plugin.common.MethodCall
-import io.flutter.plugin.common.MethodChannel
-import io.flutter.plugin.common.MethodChannel.MethodCallHandler
-import io.flutter.plugin.common.MethodChannel.Result
-
-/** GiphySelectorPlugin */
-class GiphySelectorPlugin: FlutterPlugin, MethodCallHandler {
- /// The MethodChannel that will the communication between Flutter and native Android
- ///
- /// This local reference serves to register the plugin with the Flutter Engine and unregister it
- /// when the Flutter Engine is detached from the Activity
- private lateinit var channel : MethodChannel
-
- override fun onAttachedToEngine(@NonNull flutterPluginBinding: FlutterPlugin.FlutterPluginBinding) {
- channel = MethodChannel(flutterPluginBinding.binaryMessenger, "giphy_selector")
- channel.setMethodCallHandler(this)
- }
-
- override fun onMethodCall(@NonNull call: MethodCall, @NonNull result: Result) {
- if (call.method == "getPlatformVersion") {
- result.success("Android ${android.os.Build.VERSION.RELEASE}")
- } else {
- result.notImplemented()
- }
- }
-
- override fun onDetachedFromEngine(@NonNull binding: FlutterPlugin.FlutterPluginBinding) {
- channel.setMethodCallHandler(null)
- }
-}
diff --git a/example/lib/main.dart b/example/lib/main.dart
index 7e1e49c..b81cd20 100644
--- a/example/lib/main.dart
+++ b/example/lib/main.dart
@@ -18,7 +18,7 @@ Future main() async {
}
class MyApp extends StatelessWidget {
- const MyApp({Key key}) : super(key: key);
+ const MyApp({Key? key}) : super(key: key);
// This widget is the root of your application.
@override
@@ -52,9 +52,9 @@ class MyApp extends StatelessWidget {
}
class MyHomePage extends StatefulWidget {
- final String title;
+ const MyHomePage({Key? key, required this.title}) : super(key: key);
- const MyHomePage({Key key, this.title}) : super(key: key);
+ final String title;
@override
// ignore: library_private_types_in_public_api
@@ -62,8 +62,8 @@ class MyHomePage extends StatefulWidget {
}
class _MyHomePageState extends State {
- GiphyGif currentGif;
- GiphyClient client;
+ GiphyGif? currentGif;
+ late final GiphyClient client;
String randomId = '';
String giphyApiKey = '';
@@ -127,7 +127,7 @@ class _MyHomePageState extends State {
? SizedBox(
child: GiphyGifWidget(
imageAlignment: Alignment.center,
- gif: currentGif,
+ gif: currentGif!,
giphyGetWrapper: giphyGetWrapper,
borderRadius: BorderRadius.circular(30),
showGiphyLabel: true,
diff --git a/example/pubspec.lock b/example/pubspec.lock
index af31190..cdd435c 100644
--- a/example/pubspec.lock
+++ b/example/pubspec.lock
@@ -1,69 +1,62 @@
# Generated by pub
# See https://dart.dev/tools/pub/glossary#lockfile
packages:
- archive:
- dependency: transitive
- description:
- name: archive
- url: "https://pub.dartlang.org"
- source: hosted
- version: "3.3.0"
async:
dependency: transitive
description:
name: async
- url: "https://pub.dartlang.org"
+ sha256: "947bfcf187f74dbc5e146c9eb9c0f10c9f8b30743e341481c1e2ed3ecc18c20c"
+ url: "https://pub.dev"
source: hosted
- version: "2.9.0"
+ version: "2.11.0"
boolean_selector:
dependency: transitive
description:
name: boolean_selector
- url: "https://pub.dartlang.org"
+ sha256: "6cfb5af12253eaf2b368f07bacc5a80d1301a071c73360d746b7f2e32d762c66"
+ url: "https://pub.dev"
source: hosted
- version: "2.1.0"
+ version: "2.1.1"
characters:
dependency: transitive
description:
name: characters
- url: "https://pub.dartlang.org"
+ sha256: "04a925763edad70e8443c99234dc3328f442e811f1d8fd1a72f1c8ad0f69a605"
+ url: "https://pub.dev"
source: hosted
- version: "1.2.1"
+ version: "1.3.0"
clock:
dependency: transitive
description:
name: clock
- url: "https://pub.dartlang.org"
+ sha256: cb6d7f03e1de671e34607e909a7213e31d7752be4fb66a86d29fe1eb14bfb5cf
+ url: "https://pub.dev"
source: hosted
version: "1.1.1"
collection:
dependency: transitive
description:
name: collection
- url: "https://pub.dartlang.org"
+ sha256: "4a07be6cb69c84d677a6c3096fcf960cc3285a8330b4603e0d463d15d9bd934c"
+ url: "https://pub.dev"
source: hosted
- version: "1.16.0"
- crypto:
- dependency: transitive
- description:
- name: crypto
- url: "https://pub.dartlang.org"
- source: hosted
- version: "3.0.2"
+ version: "1.17.1"
fake_async:
dependency: transitive
description:
name: fake_async
- url: "https://pub.dartlang.org"
+ sha256: "511392330127add0b769b75a987850d136345d9227c6b94c96a04cf4a391bf78"
+ url: "https://pub.dev"
source: hosted
version: "1.3.1"
file:
dependency: transitive
description:
name: file
- url: "https://pub.dartlang.org"
+ sha256: "1b92bec4fc2a72f59a8e15af5f52cd441e4a7860b49499d69dfa817af20e925d"
+ url: "https://pub.dev"
source: hosted
- version: "6.1.2"
+ version: "6.1.4"
flutter:
dependency: "direct main"
description: flutter
@@ -73,7 +66,8 @@ packages:
dependency: "direct main"
description:
name: flutter_dotenv
- url: "https://pub.dartlang.org"
+ sha256: d9283d92059a22e9834bc0a31336658ffba77089fb6f3cc36751f1fc7c6661a3
+ url: "https://pub.dev"
source: hosted
version: "5.0.2"
flutter_driver:
@@ -85,7 +79,8 @@ packages:
dependency: "direct dev"
description:
name: flutter_lints
- url: "https://pub.dartlang.org"
+ sha256: aeb0b80a8b3709709c9cc496cdc027c5b3216796bc0af0ce1007eaf24464fd4c
+ url: "https://pub.dev"
source: hosted
version: "2.0.1"
flutter_localizations:
@@ -97,7 +92,8 @@ packages:
dependency: transitive
description:
name: flutter_staggered_grid_view
- url: "https://pub.dartlang.org"
+ sha256: "1312314293acceb65b92754298754801b0e1f26a1845833b740b30415bbbcf07"
+ url: "https://pub.dev"
source: hosted
version: "0.6.2"
flutter_test:
@@ -121,21 +117,23 @@ packages:
path: ".."
relative: true
source: path
- version: "1.2.1"
+ version: "1.3.0"
http:
dependency: transitive
description:
name: http
- url: "https://pub.dartlang.org"
+ sha256: "5895291c13fa8a3bd82e76d5627f69e0d85ca6a30dcac95c4ea19a5d555879c2"
+ url: "https://pub.dev"
source: hosted
- version: "0.13.5"
+ version: "0.13.6"
http_parser:
dependency: transitive
description:
name: http_parser
- url: "https://pub.dartlang.org"
+ sha256: "2aa08ce0341cc9b354a498388e30986515406668dbcc4f7c950c3e715496693b"
+ url: "https://pub.dev"
source: hosted
- version: "4.0.1"
+ version: "4.0.2"
integration_test:
dependency: "direct dev"
description: flutter
@@ -145,70 +143,80 @@ packages:
dependency: transitive
description:
name: intl
- url: "https://pub.dartlang.org"
+ sha256: a3715e3bc90294e971cb7dc063fbf3cd9ee0ebf8604ffeafabd9e6f16abbdbe6
+ url: "https://pub.dev"
source: hosted
- version: "0.17.0"
+ version: "0.18.0"
js:
dependency: transitive
description:
name: js
- url: "https://pub.dartlang.org"
+ sha256: f2c445dce49627136094980615a031419f7f3eb393237e4ecd97ac15dea343f3
+ url: "https://pub.dev"
source: hosted
- version: "0.6.4"
+ version: "0.6.7"
lints:
dependency: transitive
description:
name: lints
- url: "https://pub.dartlang.org"
+ sha256: "6b0206b0bf4f04961fc5438198ccb3a885685cd67d4d4a32cc20ad7f8adbe015"
+ url: "https://pub.dev"
source: hosted
- version: "2.0.0"
+ version: "2.1.0"
matcher:
dependency: transitive
description:
name: matcher
- url: "https://pub.dartlang.org"
+ sha256: "6501fbd55da300384b768785b83e5ce66991266cec21af89ab9ae7f5ce1c4cbb"
+ url: "https://pub.dev"
source: hosted
- version: "0.12.12"
+ version: "0.12.15"
material_color_utilities:
dependency: transitive
description:
name: material_color_utilities
- url: "https://pub.dartlang.org"
+ sha256: d92141dc6fe1dad30722f9aa826c7fbc896d021d792f80678280601aff8cf724
+ url: "https://pub.dev"
source: hosted
- version: "0.1.5"
+ version: "0.2.0"
meta:
dependency: transitive
description:
name: meta
- url: "https://pub.dartlang.org"
+ sha256: "3c74dbf8763d36539f114c799d8a2d87343b5067e9d796ca22b5eb8437090ee3"
+ url: "https://pub.dev"
source: hosted
- version: "1.8.0"
+ version: "1.9.1"
path:
dependency: transitive
description:
name: path
- url: "https://pub.dartlang.org"
+ sha256: "8829d8a55c13fc0e37127c29fedf290c102f4e40ae94ada574091fe0ff96c917"
+ url: "https://pub.dev"
source: hosted
- version: "1.8.2"
+ version: "1.8.3"
platform:
dependency: transitive
description:
name: platform
- url: "https://pub.dartlang.org"
+ sha256: "4a451831508d7d6ca779f7ac6e212b4023dd5a7d08a27a63da33756410e32b76"
+ url: "https://pub.dev"
source: hosted
version: "3.1.0"
plugin_platform_interface:
dependency: transitive
description:
name: plugin_platform_interface
- url: "https://pub.dartlang.org"
+ sha256: "6a2128648c854906c53fa8e33986fc0247a1116122f9534dd20e3ab9e16a32bc"
+ url: "https://pub.dev"
source: hosted
- version: "2.1.2"
+ version: "2.1.4"
process:
dependency: transitive
description:
name: process
- url: "https://pub.dartlang.org"
+ sha256: "53fd8db9cec1d37b0574e12f07520d582019cb6c44abf5479a01505099a34a09"
+ url: "https://pub.dev"
source: hosted
version: "4.2.4"
sky_engine:
@@ -220,135 +228,154 @@ packages:
dependency: transitive
description:
name: source_span
- url: "https://pub.dartlang.org"
+ sha256: dd904f795d4b4f3b870833847c461801f6750a9fa8e61ea5ac53f9422b31f250
+ url: "https://pub.dev"
source: hosted
- version: "1.9.0"
+ version: "1.9.1"
stack_trace:
dependency: transitive
description:
name: stack_trace
- url: "https://pub.dartlang.org"
+ sha256: c3c7d8edb15bee7f0f74debd4b9c5f3c2ea86766fe4178eb2a18eb30a0bdaed5
+ url: "https://pub.dev"
source: hosted
- version: "1.10.0"
+ version: "1.11.0"
stream_channel:
dependency: transitive
description:
name: stream_channel
- url: "https://pub.dartlang.org"
+ sha256: "83615bee9045c1d322bbbd1ba209b7a749c2cbcdcb3fdd1df8eb488b3279c1c8"
+ url: "https://pub.dev"
source: hosted
- version: "2.1.0"
+ version: "2.1.1"
string_scanner:
dependency: transitive
description:
name: string_scanner
- url: "https://pub.dartlang.org"
+ sha256: "556692adab6cfa87322a115640c11f13cb77b3f076ddcc5d6ae3c20242bedcde"
+ url: "https://pub.dev"
source: hosted
- version: "1.1.1"
+ version: "1.2.0"
sync_http:
dependency: transitive
description:
name: sync_http
- url: "https://pub.dartlang.org"
+ sha256: "7f0cd72eca000d2e026bcd6f990b81d0ca06022ef4e32fb257b30d3d1014a961"
+ url: "https://pub.dev"
source: hosted
version: "0.3.1"
term_glyph:
dependency: transitive
description:
name: term_glyph
- url: "https://pub.dartlang.org"
+ sha256: a29248a84fbb7c79282b40b8c72a1209db169a2e0542bce341da992fe1bc7e84
+ url: "https://pub.dev"
source: hosted
version: "1.2.1"
test_api:
dependency: transitive
description:
name: test_api
- url: "https://pub.dartlang.org"
+ sha256: eb6ac1540b26de412b3403a163d919ba86f6a973fe6cc50ae3541b80092fdcfb
+ url: "https://pub.dev"
source: hosted
- version: "0.4.12"
+ version: "0.5.1"
typed_data:
dependency: transitive
description:
name: typed_data
- url: "https://pub.dartlang.org"
+ sha256: facc8d6582f16042dd49f2463ff1bd6e2c9ef9f3d5da3d9b087e244a7b564b3c
+ url: "https://pub.dev"
source: hosted
- version: "1.3.1"
+ version: "1.3.2"
url_launcher:
dependency: transitive
description:
name: url_launcher
- url: "https://pub.dartlang.org"
+ sha256: eb1e00ab44303d50dd487aab67ebc575456c146c6af44422f9c13889984c00f3
+ url: "https://pub.dev"
source: hosted
- version: "6.1.6"
+ version: "6.1.11"
url_launcher_android:
dependency: transitive
description:
name: url_launcher_android
- url: "https://pub.dartlang.org"
+ sha256: "22f8db4a72be26e9e3a4aa3f194b1f7afbc76d20ec141f84be1d787db2155cbd"
+ url: "https://pub.dev"
source: hosted
- version: "6.0.18"
+ version: "6.0.31"
url_launcher_ios:
dependency: transitive
description:
name: url_launcher_ios
- url: "https://pub.dartlang.org"
+ sha256: "9af7ea73259886b92199f9e42c116072f05ff9bea2dcb339ab935dfc957392c2"
+ url: "https://pub.dev"
source: hosted
- version: "6.0.17"
+ version: "6.1.4"
url_launcher_linux:
dependency: transitive
description:
name: url_launcher_linux
- url: "https://pub.dartlang.org"
+ sha256: "207f4ddda99b95b4d4868320a352d374b0b7e05eefad95a4a26f57da413443f5"
+ url: "https://pub.dev"
source: hosted
- version: "3.0.1"
+ version: "3.0.5"
url_launcher_macos:
dependency: transitive
description:
name: url_launcher_macos
- url: "https://pub.dartlang.org"
+ sha256: "91ee3e75ea9dadf38036200c5d3743518f4a5eb77a8d13fda1ee5764373f185e"
+ url: "https://pub.dev"
source: hosted
- version: "3.0.1"
+ version: "3.0.5"
url_launcher_platform_interface:
dependency: transitive
description:
name: url_launcher_platform_interface
- url: "https://pub.dartlang.org"
+ sha256: "6c9ca697a5ae218ce56cece69d46128169a58aa8653c1b01d26fcd4aad8c4370"
+ url: "https://pub.dev"
source: hosted
- version: "2.1.0"
+ version: "2.1.2"
url_launcher_web:
dependency: transitive
description:
name: url_launcher_web
- url: "https://pub.dartlang.org"
+ sha256: "81fe91b6c4f84f222d186a9d23c73157dc4c8e1c71489c4d08be1ad3b228f1aa"
+ url: "https://pub.dev"
source: hosted
- version: "2.0.13"
+ version: "2.0.16"
url_launcher_windows:
dependency: transitive
description:
name: url_launcher_windows
- url: "https://pub.dartlang.org"
+ sha256: "254708f17f7c20a9c8c471f67d86d76d4a3f9c1591aad1e15292008aceb82771"
+ url: "https://pub.dev"
source: hosted
- version: "3.0.1"
+ version: "3.0.6"
vector_math:
dependency: transitive
description:
name: vector_math
- url: "https://pub.dartlang.org"
+ sha256: "80b3257d1492ce4d091729e3a67a60407d227c27241d6927be0130c98e741803"
+ url: "https://pub.dev"
source: hosted
- version: "2.1.2"
+ version: "2.1.4"
vm_service:
dependency: transitive
description:
name: vm_service
- url: "https://pub.dartlang.org"
+ sha256: f6deed8ed625c52864792459709183da231ebf66ff0cf09e69b573227c377efe
+ url: "https://pub.dev"
source: hosted
- version: "9.0.0"
+ version: "11.3.0"
webdriver:
dependency: transitive
description:
name: webdriver
- url: "https://pub.dartlang.org"
+ sha256: "3c923e918918feeb90c4c9fdf1fe39220fa4c0e8e2c0fffaded174498ef86c49"
+ url: "https://pub.dev"
source: hosted
- version: "3.0.0"
+ version: "3.0.2"
sdks:
- dart: ">=2.18.0 <3.0.0"
- flutter: ">=2.10.0"
+ dart: ">=3.0.0-417 <4.0.0"
+ flutter: ">=3.3.0"
diff --git a/example/pubspec.yaml b/example/pubspec.yaml
index 5336f5e..c649062 100644
--- a/example/pubspec.yaml
+++ b/example/pubspec.yaml
@@ -5,7 +5,7 @@ publish_to: "none" # Remove this line if you wish to publish to pub.dev
version: 1.0.1+1
environment:
- sdk: ">=2.7.0 <3.0.0"
+ sdk: ">=2.12.0 <3.0.0"
dependencies:
flutter:
diff --git a/lib/src/widgets/modal.dart b/lib/src/widgets/modal.dart
index 3521897..ab82b51 100644
--- a/lib/src/widgets/modal.dart
+++ b/lib/src/widgets/modal.dart
@@ -2,7 +2,7 @@ import 'package:flutter/material.dart';
import '../client/client.dart';
import 'config.dart';
-import 'search_controller.dart';
+import 'search_controller.dart' as intern;
import 'selector.dart';
class GiphySelectorModal extends StatefulWidget {
@@ -31,7 +31,7 @@ class GiphySelectorModal extends StatefulWidget {
class GiphySelectorModalState extends GiphySelectorContainer
with SingleTickerProviderStateMixin {
- final _searchController = SearchController('');
+ final _searchController = intern.SearchController('');
late TabController _tabController;
final _scrollController = ScrollController();
diff --git a/lib/src/widgets/selector.dart b/lib/src/widgets/selector.dart
index b4c0826..126f37c 100644
--- a/lib/src/widgets/selector.dart
+++ b/lib/src/widgets/selector.dart
@@ -6,7 +6,7 @@ import 'package:flutter_staggered_grid_view/flutter_staggered_grid_view.dart';
import '../client/client.dart';
import 'config.dart';
-import 'search_controller.dart';
+import 'search_controller.dart' as intern;
abstract class GiphySelectorContainer
extends State {
@@ -95,7 +95,7 @@ class GiphyTabTop extends StatelessWidget {
margin: const EdgeInsets.symmetric(vertical: 8.0),
width: 50,
height: 2,
- color: Theme.of(context).textTheme.bodyText1!.color!,
+ color: Theme.of(context).textTheme.bodyLarge!.color!,
);
}
}
@@ -110,7 +110,7 @@ class SearchAppBar extends StatefulWidget {
: super(key: key);
final ScrollController scrollController;
- final SearchController searchController;
+ final intern.SearchController searchController;
final FocusNode focusNode;
final Function(FocusNode)? focusListener;
@@ -192,7 +192,7 @@ class _SearchAppBarState extends State {
Icons.clear,
color: Theme.of(context)
.textTheme
- .bodyText1!
+ .bodyLarge!
.color!,
),
onPressed: () {
@@ -257,7 +257,7 @@ class GiphyTabView extends StatelessWidget {
final ScrollController scrollController;
final TabController tabController;
- final SearchController searchController;
+ final intern.SearchController searchController;
@override
Widget build(BuildContext context) {
@@ -295,7 +295,7 @@ class GiphyTabDetail extends StatefulWidget {
final String type;
final ScrollController scrollController;
- final SearchController searchController;
+ final intern.SearchController searchController;
@override
State createState() => _GiphyTabDetailState();
diff --git a/lib/src/widgets/sheet.dart b/lib/src/widgets/sheet.dart
index d836925..0c7b35c 100644
--- a/lib/src/widgets/sheet.dart
+++ b/lib/src/widgets/sheet.dart
@@ -2,7 +2,7 @@ import 'package:flutter/material.dart';
import '../client/client.dart';
import 'config.dart';
-import 'search_controller.dart';
+import 'search_controller.dart' as intern;
import 'selector.dart';
class GiphySelectorSheet extends StatefulWidget {
@@ -34,7 +34,7 @@ const double _maxExtent = 0.95;
class GiphySelectorSheetState extends GiphySelectorContainer
with SingleTickerProviderStateMixin {
- final _searchController = SearchController("");
+ final _searchController = intern.SearchController('');
late TabController _tabController;
late ScrollController _scrollController;
diff --git a/pubspec.yaml b/pubspec.yaml
index bd4e945..a0080b6 100644
--- a/pubspec.yaml
+++ b/pubspec.yaml
@@ -1,12 +1,12 @@
name: giphy_selector
description: A Flutter plugin enabling the selection of a GIPHY GIF, Sticker or Emoji
-version: 1.2.2
+version: 1.3.0
homepage: https://github.com/amantoux/giphy_selector
environment:
- sdk: ">=2.18.0 <3.0.0"
- flutter: ">=1.17.0"
+ sdk: ">=2.18.0 <4.0.0"
+ flutter: ">=3.0.0"
dependencies:
flutter: