Skip to content

Commit

Permalink
chore!: upgrade to flutter 3.27.1 (#972)
Browse files Browse the repository at this point in the history
  • Loading branch information
Feichtmeier authored Dec 19, 2024
1 parent 43ff52e commit b1fbe2e
Show file tree
Hide file tree
Showing 32 changed files with 109 additions and 103 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
workflow_dispatch:

env:
FLUTTER_VERSION: 3.24.3
FLUTTER_VERSION: 3.27.1

jobs:
analyze:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
workflow_dispatch:

env:
FLUTTER_VERSION: 3.24.3
FLUTTER_VERSION: 3.27.1

jobs:
goldens:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- main

env:
FLUTTER_VERSION: 3.24.3
FLUTTER_VERSION: 3.27.1

jobs:
publish:
Expand Down
3 changes: 2 additions & 1 deletion example/lib/pages/carousel_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ class _CarouselPageState extends State<CarouselPage> {
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(10),
border: Border.all(
color: Theme.of(context).colorScheme.onSurface.withOpacity(0.1),
color:
Theme.of(context).colorScheme.onSurface.withValues(alpha: 0.1),
),
image: const DecorationImage(
fit: BoxFit.contain,
Expand Down
3 changes: 2 additions & 1 deletion example/lib/pages/draggable_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ class DraggablePage extends StatelessWidget {
controller: controller,
padding: const EdgeInsets.all(kYaruPagePadding),
child: Container(
color: Theme.of(context).colorScheme.onSurface.withOpacity(.1),
color:
Theme.of(context).colorScheme.onSurface.withValues(alpha: 0.1),
child: SizedBox(
width: 500,
height: 250,
Expand Down
2 changes: 1 addition & 1 deletion example/lib/pages/icons_page/common/icon_dialog.dart
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class IconDialog extends StatelessWidget {
color: Theme.of(context)
.colorScheme
.onSurface
.withOpacity(0.05),
.withValues(alpha: 0.05),
),
child: iconItem.iconBuilder(context, size),
),
Expand Down
2 changes: 1 addition & 1 deletion example/lib/pages/info_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ class _CopyButton extends StatelessWidget {
fixedSize: const Size.square(kYaruTitleBarItemHeight),
side: BorderSide(
width: 1,
color: YaruColors.magenta.withOpacity(0.5),
color: YaruColors.magenta.withValues(alpha: 0.5),
),
padding: EdgeInsets.zero,
),
Expand Down
2 changes: 1 addition & 1 deletion example/lib/pages/paned_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class PanedPage extends StatelessWidget {
@override
Widget build(BuildContext context) {
final pane = Container(
color: Theme.of(context).colorScheme.onSurface.withOpacity(.025),
color: Theme.of(context).colorScheme.onSurface.withValues(alpha: 0.025),
child: const Center(
child: Text('pane'),
),
Expand Down
2 changes: 1 addition & 1 deletion example/lib/pages/theme_page/src/colors/colors_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ class ColorsView extends StatelessWidget {
borderRadius: BorderRadius.circular(6),
boxShadow: [
BoxShadow(
color: Colors.black.withOpacity(0.1),
color: Colors.black.withValues(alpha: 0.1),
offset: const Offset(0, 1),
spreadRadius: 1,
blurRadius: 2,
Expand Down
2 changes: 1 addition & 1 deletion example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ version: 1.0.0+1

environment:
sdk: ">=3.0.0 <4.0.0"
flutter: ">=3.24.3"
flutter: ">=3.27.1"

dependencies:
collection: ^1.17.0
Expand Down
2 changes: 1 addition & 1 deletion lib/src/icons/yaru_icons.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// Generated using icon_font_generator.
// Copyright © 2024 icon_font_generator (https://pub.dev/packages/icon_font_generator).

// ignore_for_file: constant_identifier_names
// ignore_for_file: constant_identifier_names, unintended_html_in_doc_comment

import 'package:flutter/widgets.dart';

Expand Down
4 changes: 2 additions & 2 deletions lib/src/themes/colors.dart
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ extension YaruColorExtension on Color {
}

return hslColor
.withAlpha(scale(opacity, alpha))
.withAlpha(scale(a, alpha))
.withHue(scale(hslColor.hue, hue, 360.0))
.withSaturation(scale(hslColor.saturation, saturation))
.withLightness(scale(hslColor.lightness, lightness))
Expand Down Expand Up @@ -325,7 +325,7 @@ extension YaruColorExtension on Color {

/// Returns a hex representation (`#AARRGGBB`) of the color.
String toHex() {
return '#${alpha.toHex()}${red.toHex()}${green.toHex()}${blue.toHex()}';
return '#${a.toInt().toHex()}${r.toInt().toHex()}${g.toInt().toHex()}${b.toInt().toHex()}';
}
}

Expand Down
Loading

0 comments on commit b1fbe2e

Please sign in to comment.