From b7b7dfe26ff7bd1f1a3922528cb42f492319bb73 Mon Sep 17 00:00:00 2001 From: Nikhil Rajput Date: Sun, 11 Jun 2023 22:23:02 +0530 Subject: [PATCH] bumped to version 2.0.4 --- CHANGELOG.md | 11 +++++++++++ lib/src/indicators/circular_slide_indicator.dart | 11 +++++------ lib/src/indicators/circular_static_indicator.dart | 11 +++++------ lib/src/indicators/circular_wave_slide_indicator.dart | 11 +++++------ lib/src/indicators/sequential_fill_indicator.dart | 11 +++++------ pubspec.yaml | 2 +- 6 files changed, 32 insertions(+), 25 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a15fba7..1e954f4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,16 @@ # Changelog +## 2.0.4 + +* **Optimization**: Removed unnecessary codes. + +## 2.0.3 + +* **Improvement**: Removed unnecessary dependencies. +* **Fix**: All known bug fixed and removed. +* **Improvement**: Performance improvements. +* **Optimization**: Removed unnecessary codes. + ## 2.0.2 * **Add**: `indicatorMargin` property added to `CarouselOptions`. diff --git a/lib/src/indicators/circular_slide_indicator.dart b/lib/src/indicators/circular_slide_indicator.dart index 3ad3db1..b259087 100644 --- a/lib/src/indicators/circular_slide_indicator.dart +++ b/lib/src/indicators/circular_slide_indicator.dart @@ -1,5 +1,4 @@ import 'package:flutter/material.dart'; -import 'package:flutter/scheduler.dart'; import 'slide_indicator.dart'; @@ -29,11 +28,11 @@ class CircularSlideIndicator implements SlideIndicator { var activeColor = const Color(0xFFFFFFFF); var backgroundColor = const Color(0x66FFFFFF); - if (SchedulerBinding.instance.window.platformBrightness == - Brightness.light) { - activeColor = const Color(0xFF000000); - backgroundColor = const Color.fromARGB(255, 163, 159, 159); - } + // if (SchedulerBinding.instance.window.platformBrightness == + // Brightness.light) { + // activeColor = const Color(0xFF000000); + // backgroundColor = const Color.fromARGB(255, 163, 159, 159); + // } return Container( alignment: alignment, diff --git a/lib/src/indicators/circular_static_indicator.dart b/lib/src/indicators/circular_static_indicator.dart index b26c283..7c57623 100644 --- a/lib/src/indicators/circular_static_indicator.dart +++ b/lib/src/indicators/circular_static_indicator.dart @@ -1,5 +1,4 @@ import 'package:flutter/material.dart'; -import 'package:flutter/scheduler.dart'; import 'slide_indicator.dart'; @@ -31,11 +30,11 @@ class CircularStaticIndicator extends SlideIndicator { var activeColor = const Color(0xFFFFFFFF); var backgroundColor = const Color(0x66FFFFFF); - if (SchedulerBinding.instance.window.platformBrightness == - Brightness.light) { - activeColor = const Color(0xFF000000); - backgroundColor = const Color(0xFF878484); - } + // if (SchedulerBinding.instance.window.platformBrightness == + // Brightness.light) { + // activeColor = const Color(0xFF000000); + // backgroundColor = const Color(0xFF878484); + // } return Container( alignment: alignment, diff --git a/lib/src/indicators/circular_wave_slide_indicator.dart b/lib/src/indicators/circular_wave_slide_indicator.dart index d71ec9b..78f9abb 100644 --- a/lib/src/indicators/circular_wave_slide_indicator.dart +++ b/lib/src/indicators/circular_wave_slide_indicator.dart @@ -1,5 +1,4 @@ import 'package:flutter/material.dart'; -import 'package:flutter/scheduler.dart'; import 'slide_indicator.dart'; @@ -29,11 +28,11 @@ class CircularWaveSlideIndicator implements SlideIndicator { var activeColor = const Color(0xFFFFFFFF); var backgroundColor = const Color(0x66FFFFFF); - if (SchedulerBinding.instance.window.platformBrightness == - Brightness.light) { - activeColor = const Color(0xFF000000); - backgroundColor = const Color(0xFF878484); - } + // if (SchedulerBinding.instance.window.platformBrightness == + // Brightness.light) { + // activeColor = const Color(0xFF000000); + // backgroundColor = const Color(0xFF878484); + // } return Container( alignment: alignment, diff --git a/lib/src/indicators/sequential_fill_indicator.dart b/lib/src/indicators/sequential_fill_indicator.dart index cd37c48..e8bd12a 100644 --- a/lib/src/indicators/sequential_fill_indicator.dart +++ b/lib/src/indicators/sequential_fill_indicator.dart @@ -1,5 +1,4 @@ import 'package:flutter/material.dart'; -import 'package:flutter/scheduler.dart'; import 'slide_indicator.dart'; @@ -31,11 +30,11 @@ class SequentialFillIndicator extends SlideIndicator { var activeColor = const Color(0xFFFFFFFF); var backgroundColor = const Color(0x66FFFFFF); - if (SchedulerBinding.instance.window.platformBrightness == - Brightness.light) { - activeColor = const Color(0xFF000000); - backgroundColor = const Color(0xFF878484); - } + // if (SchedulerBinding.instance.window.platformBrightness == + // Brightness.light) { + // activeColor = const Color(0xFF000000); + // backgroundColor = const Color(0xFF878484); + // } return Container( alignment: alignment, diff --git a/pubspec.yaml b/pubspec.yaml index bff72fd..0228da0 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: flutter_carousel_widget description: A customizable carousel slider widget in Flutter which supports infinite scrolling, auto scrolling, custom child widget, custom animations and built-in indicators. -version: 2.0.3 +version: 2.0.4 homepage: https://github.com/nixrajput repository: https://github.com/nixrajput/flutter_carousel_widget issue_tracker: https://github.com/nixrajput/flutter_carousel_widget/issues