Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compatible with flutter 3.27 #3273

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,17 @@ jobs:
steps:
# The branch or tag ref that triggered the workflow will be checked out.
# https://github.com/actions/checkout
- uses: actions/checkout@v3
- uses: actions/checkout@v4
# Setup a flutter environment.
# https://github.com/marketplace/actions/flutter-action
- uses: subosito/flutter-action@v2
with:
flutter-version: "3.24.0"
flutter-version: "3.27.0"
channel: "stable"
- run: flutter pub get
#- run: flutter analyze
# run flutter widgets tests and unit tests
- run: flutter test --coverage
# Upload coverage reports to Codecov
# https://github.com/marketplace/actions/codecov
- uses: codecov/codecov-action@v1.0.7
- uses: codecov/codecov-action@v4
3 changes: 3 additions & 0 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# Include option is buggy:
include: package:flutter_lints/flutter.yaml
analyzer:
errors:
unintended_html_in_doc_comment: ignore
# In case the include issue gets fixed, lines below INCLUDE_FIX
# can be removed
6 changes: 3 additions & 3 deletions example/lib/pages/home/presentation/views/details_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class DetailsView extends GetView<DetailsController> {
image: DecorationImage(
fit: BoxFit.cover,
colorFilter: ColorFilter.mode(
Colors.black.withOpacity(0.2),
Colors.black.withValues(alpha: 0.2),
BlendMode.darken,
),
image: NetworkImage(
Expand Down Expand Up @@ -60,8 +60,8 @@ class DetailsView extends GetView<DetailsController> {
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(25),
),
shadowColor: Colors.blueAccent.withOpacity(0.5),
color: Colors.white.withOpacity(0.85),
shadowColor: Colors.blueAccent.withValues(alpha: 0.5),
color: Colors.white.withValues(alpha: 0.85),
child: Padding(
padding: const EdgeInsets.all(32.0),
child: Column(
Expand Down
13 changes: 7 additions & 6 deletions example/lib/pages/home/presentation/views/home_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class HomeView extends GetView<HomeController> {
child: BackdropFilter(
filter: ImageFilter.blur(sigmaX: 10.0, sigmaY: 10.0),
child: Scaffold(
backgroundColor: Colors.black.withOpacity(0.6),
backgroundColor: Colors.black.withValues(alpha: 0.6),
extendBodyBehindAppBar: true,
appBar: AppBar(
title: Text(
Expand All @@ -45,14 +45,14 @@ class HomeView extends GetView<HomeController> {
'New Feature',
'Coming soon!',
snackPosition: SnackPosition.bottom,
backgroundColor: Colors.white.withOpacity(0.9),
backgroundColor: Colors.white.withValues(alpha: 0.9),
colorText: Colors.black,
borderRadius: 10,
duration: Duration(seconds: 3),
animationDuration: Duration(milliseconds: 500),
boxShadows: [
BoxShadow(
color: Colors.black.withOpacity(0.2),
color: Colors.black.withValues(alpha: 0.2),
spreadRadius: 1,
blurRadius: 5,
offset: Offset(0, 3),
Expand All @@ -70,14 +70,15 @@ class HomeView extends GetView<HomeController> {
ElevatedButton(
style: ElevatedButton.styleFrom(
foregroundColor: Colors.white,
backgroundColor: Colors.blueAccent.withOpacity(0.8),
backgroundColor:
Colors.blueAccent.withValues(alpha: 0.8),
padding:
EdgeInsets.symmetric(horizontal: 24, vertical: 16),
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(30),
),
elevation: 8,
shadowColor: Colors.blueAccent.withOpacity(0.5),
shadowColor: Colors.blueAccent.withValues(alpha: 0.5),
),
onPressed: () {
Get.updateLocale(Get.locale?.languageCode == 'en'
Expand Down Expand Up @@ -108,7 +109,7 @@ class HomeView extends GetView<HomeController> {
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(20),
),
color: Colors.white.withOpacity(0.9),
color: Colors.white.withValues(alpha: 0.9),
child: ListTile(
onTap: () async {
final data = await Get.toNamed(
Expand Down
4 changes: 2 additions & 2 deletions example_nav2/android/local.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
sdk.dir=/Users/jonatasborges/Library/Android/sdk
flutter.sdk=/Users/jonatasborges/flutter
sdk.dir=C:\\Users\\anike\\AppData\\Local\\Android\\sdk
flutter.sdk=C:\\flutter
2 changes: 1 addition & 1 deletion lib/get.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/// GetX is an extra-light and powerful multi-platform framework.
/// It combines high performance state management, intelligent dependency
/// injection, and route management in a quick and practical way.
library get;
library;

export 'get_animations/index.dart';
export 'get_common/get_reset.dart';
Expand Down
2 changes: 1 addition & 1 deletion lib/get_animations/animations.dart
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ class ColorAnimation extends GetAnimatedBuilder<Color?> {
}) : super(
builder: (context, value, child) => ColorFiltered(
colorFilter: ColorFilter.mode(
Color.lerp(begin, end, value!.value.toDouble())!,
Color.lerp(begin, end, value!.a.toDouble())!,
BlendMode.srcIn,
),
child: child,
Expand Down
1 change: 0 additions & 1 deletion lib/get_connect/http/src/response/client_response.dart
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,6 @@ abstract interface class HttpHeaders {
static const cookieHeader = "cookie";
static const setCookieHeader = "set-cookie";

// TODO(39783): Document this.
static const generalHeaders = [
cacheControlHeader,
connectionHeader,
Expand Down
2 changes: 1 addition & 1 deletion lib/get_core/get_core.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
library get_core;
library;

export 'src/flutter_engine.dart';
export 'src/get_interface.dart';
Expand Down
2 changes: 1 addition & 1 deletion lib/get_navigation/get_navigation.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
library get_navigation;
library;

export 'src/bottomsheet/bottomsheet.dart';
export 'src/extension_navigation.dart';
Expand Down
2 changes: 1 addition & 1 deletion lib/get_navigation/src/extension_navigation.dart
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ extension ExtensionSnackbar on GetInterface {
margin: margin ?? const EdgeInsets.symmetric(horizontal: 10),
duration: duration,
barBlur: barBlur ?? 7.0,
backgroundColor: backgroundColor ?? Colors.grey.withOpacity(0.2),
backgroundColor: backgroundColor ?? Colors.grey.withValues(alpha: 0.2),
icon: icon,
shouldIconPulse: shouldIconPulse ?? true,
maxWidth: maxWidth,
Expand Down
4 changes: 0 additions & 4 deletions lib/get_navigation/src/routes/get_router_delegate.dart
Original file line number Diff line number Diff line change
Expand Up @@ -255,8 +255,6 @@ class GetDelegate extends RouterDelegate<RouteDecoder>
return await _popHistory<T>(result);
case PopMode.page:
return await _popPage<T>(result);
default:
return null;
}
}

Expand Down Expand Up @@ -760,8 +758,6 @@ class GetDelegate extends RouterDelegate<RouteDecoder>
case PreventDuplicateHandlingMode.recreate:
_activePages.remove(onStackPage);
_activePages.add(res);
break;
default:
}
}
if (rebuildStack) {
Expand Down
2 changes: 1 addition & 1 deletion lib/get_navigation/src/snackbar/snackbar.dart
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ class GetSnackBar extends StatefulWidget {

/// Default is [Colors.transparent]. Only takes effect if [overlayBlur] > 0.0.
/// Make sure you use a color with transparency here e.g.
/// Colors.grey[600].withOpacity(0.2).
/// Colors.grey[600].withValues(alpha:0.2).
final Color? overlayColor;

/// A [TextFormField] in case you want a simple user input.
Expand Down
2 changes: 1 addition & 1 deletion lib/get_rx/get_rx.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
library get_rx;
library;

export 'src/rx_stream/rx_stream.dart';
export 'src/rx_types/rx_types.dart';
Expand Down
2 changes: 1 addition & 1 deletion lib/get_rx/src/rx_stream/rx_stream.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
library rx_stream;
library;

import 'dart:async';

Expand Down
2 changes: 1 addition & 1 deletion lib/get_rx/src/rx_types/rx_types.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
library rx_types;
library;

import 'dart:async';
import 'dart:collection';
Expand Down
2 changes: 1 addition & 1 deletion lib/get_state_manager/get_state_manager.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
library get_state_manager;
library;

export 'src/rx_flutter/rx_getx_widget.dart';
export 'src/rx_flutter/rx_notifier.dart';
Expand Down
2 changes: 1 addition & 1 deletion lib/get_utils/src/equality/equality.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
library equality;
library;

import 'dart:collection';

Expand Down
2 changes: 1 addition & 1 deletion lib/instance_manager.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/// Get Instance Manager is a modern and intelligent dependency injector
/// that injects and removes dependencies seasonally.
library instance_manager;
library;

export 'get_core/get_core.dart';
export 'get_instance/get_instance.dart';
2 changes: 1 addition & 1 deletion lib/route_manager.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
///Get Navigator allows you to navigate routes, open snackbars,
///dialogs and bottomsheets easily, and without the need for context.
library route_manager;
library;

export 'get_core/get_core.dart';
export 'get_navigation/get_navigation.dart';
2 changes: 1 addition & 1 deletion lib/state_manager.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/// Get State Manager is a light, modern and powerful state manager to Flutter
library state_manager;
library;

export 'get_core/get_core.dart';
export 'get_rx/get_rx.dart';
Expand Down
2 changes: 1 addition & 1 deletion lib/utils.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/// Get utils is a set of tools that allows you to access high-level
/// APIs and obtain validation tools for Flutter and GetX
library utils;
library;

export 'get_core/get_core.dart';
export 'get_utils/get_utils.dart';
4 changes: 2 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ dependencies:
sdk: flutter
flutter_web_plugins:
sdk: flutter
web: ">=0.5.0 <2.0.0"
web: ">=1.0.0 <2.0.0"

dev_dependencies:
flutter_lints: ^4.0.0
flutter_lints: ^5.0.0
flutter_test:
sdk: flutter

Expand Down
Loading