From c1c0badb830d6c6723d0c5ff98fef7cc26e40391 Mon Sep 17 00:00:00 2001 From: Achraf Labidi Date: Wed, 7 Feb 2024 21:25:37 +0100 Subject: [PATCH] Add `touch_indicator` --- lib/main.dart | 2 ++ pubspec.lock | 8 ++++++++ pubspec.yaml | 1 + 3 files changed, 11 insertions(+) diff --git a/lib/main.dart b/lib/main.dart index 22421af..9c3c19f 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -12,6 +12,7 @@ import 'package:gocast_mobile/views/login_view/internal_login_view.dart'; import 'package:gocast_mobile/views/on_boarding_view/welcome_screen_view.dart'; import 'package:logger/logger.dart'; import 'package:firebase_core/firebase_core.dart'; +import 'package:touch_indicator/touch_indicator.dart'; import 'firebase_options.dart'; import 'package:flutter_localizations/flutter_localizations.dart'; import 'package:flutter_gen/gen_l10n/app_localizations.dart'; @@ -57,6 +58,7 @@ class App extends ConsumerWidget { GlobalWidgetsLocalizations.delegate, GlobalCupertinoLocalizations.delegate, ], + builder: (context, child) => TouchIndicator(child: child!), supportedLocales: L10n.all, locale: Locale(UserPreferences.getLanguage()), theme: appTheme, diff --git a/pubspec.lock b/pubspec.lock index fae966c..baa2fc0 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -730,6 +730,14 @@ packages: url: "https://pub.dev" source: hosted version: "0.6.1" + touch_indicator: + dependency: "direct main" + description: + name: touch_indicator + sha256: c7582fc10f433b795a0057036f7c74f050d32f7c317479cb9469ab849c7321c3 + url: "https://pub.dev" + source: hosted + version: "2.0.0" tuple: dependency: "direct main" description: diff --git a/pubspec.yaml b/pubspec.yaml index c2abb7e..a058925 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -38,6 +38,7 @@ dependencies: jwt_decode: ^0.3.1 flutter_localizations: sdk: flutter + touch_indicator: ^2.0.0 dev_dependencies: flutter_test: