From 551ff943345e655555eac157f370a95d1fcf451d Mon Sep 17 00:00:00 2001 From: bhavini-hexaunity Date: Sat, 21 Dec 2024 08:44:07 +0530 Subject: [PATCH 1/2] Add cupertino loader --- lib/src/easy_loading.dart | 1 + lib/src/widgets/indicator.dart | 7 +++++++ pubspec.yaml | 1 + 3 files changed, 9 insertions(+) diff --git a/lib/src/easy_loading.dart b/lib/src/easy_loading.dart index 1193f48..4014d1e 100644 --- a/lib/src/easy_loading.dart +++ b/lib/src/easy_loading.dart @@ -92,6 +92,7 @@ enum EasyLoadingIndicatorType { ripple, spinningCircle, squareCircle, + cupertino, } /// loading status diff --git a/lib/src/widgets/indicator.dart b/lib/src/widgets/indicator.dart index 0ac3f99..9fbfcdf 100644 --- a/lib/src/widgets/indicator.dart +++ b/lib/src/widgets/indicator.dart @@ -22,6 +22,7 @@ import 'package:flutter/material.dart'; import 'package:flutter_spinkit/flutter_spinkit.dart'; +import 'package:flutter/cupertino.dart'; import '../easy_loading.dart'; import '../theme.dart'; @@ -199,6 +200,12 @@ class _LoadingIndicatorState extends State { size: _size, ); break; + case EasyLoadingIndicatorType.cupertino: + _indicator = CupertinoActivityIndicator( + color: _indicatorColor, + radius: _size, + ); + break; default: _indicator = SpinKitFadingCircle( color: _indicatorColor, diff --git a/pubspec.yaml b/pubspec.yaml index e31e2ff..f19d3eb 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -11,6 +11,7 @@ dependencies: sdk: flutter flutter_spinkit: ^5.1.0 + cupertino_icons: ^1.0.8 dev_dependencies: flutter_test: From 7b8c8e0ba8f058d6481208e3462b575ab88b6108 Mon Sep 17 00:00:00 2001 From: bhavini-hexaunity Date: Fri, 10 Jan 2025 10:36:52 +0530 Subject: [PATCH 2/2] Update pubspec.yaml --- pubspec.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pubspec.yaml b/pubspec.yaml index f19d3eb..784dde5 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,5 +1,5 @@ name: flutter_easyloading -description: A clean and lightweight loading/toast widget for Flutter, Easy to use without context, Support iOS、Android and Web +description: Easy loading without context version: 3.0.5 homepage: https://github.com/nslogx/flutter_easyloading