Skip to content

Commit

Permalink
bumped to version 2.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
nixrajput committed Jun 11, 2023
1 parent 5271c90 commit b7b7dfe
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 25 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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`.
Expand Down
11 changes: 5 additions & 6 deletions lib/src/indicators/circular_slide_indicator.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import 'package:flutter/material.dart';
import 'package:flutter/scheduler.dart';

import 'slide_indicator.dart';

Expand Down Expand Up @@ -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,
Expand Down
11 changes: 5 additions & 6 deletions lib/src/indicators/circular_static_indicator.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import 'package:flutter/material.dart';
import 'package:flutter/scheduler.dart';

import 'slide_indicator.dart';

Expand Down Expand Up @@ -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,
Expand Down
11 changes: 5 additions & 6 deletions lib/src/indicators/circular_wave_slide_indicator.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import 'package:flutter/material.dart';
import 'package:flutter/scheduler.dart';

import 'slide_indicator.dart';

Expand Down Expand Up @@ -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,
Expand Down
11 changes: 5 additions & 6 deletions lib/src/indicators/sequential_fill_indicator.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import 'package:flutter/material.dart';
import 'package:flutter/scheduler.dart';

import 'slide_indicator.dart';

Expand Down Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit b7b7dfe

Please sign in to comment.