Skip to content

Commit 8d208d7

Browse files
CI Fix, part #2 (#2423)
1 parent 82a8a84 commit 8d208d7

File tree

16 files changed

+65
-63
lines changed

16 files changed

+65
-63
lines changed

.github/workflows/beta.yml

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -35,21 +35,23 @@ jobs:
3535
with:
3636
channel: beta
3737
- run: ./tool/flutter_ci_script_stable.sh
38+
3839
# Verify the Android add-to-app samples build and pass tests with the beta
3940
# channel.
40-
android-build:
41-
runs-on: ubuntu-latest
42-
if: github.repository == 'flutter/samples'
43-
steps:
44-
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
45-
- uses: actions/setup-java@6a0805fcefea3d4657a47ac4c165951e33482018
46-
with:
47-
distribution: 'zulu'
48-
java-version: '17'
49-
- uses: subosito/flutter-action@44ac965b96f18d999802d4b807e3256d5a3f9fa1
50-
with:
51-
channel: beta
52-
- run: ./tool/android_ci_script.sh
41+
# android-build:
42+
# runs-on: ubuntu-latest
43+
# if: github.repository == 'flutter/samples'
44+
# steps:
45+
# - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
46+
# - uses: actions/setup-java@6a0805fcefea3d4657a47ac4c165951e33482018
47+
# with:
48+
# distribution: 'zulu'
49+
# java-version: '17'
50+
# - uses: subosito/flutter-action@44ac965b96f18d999802d4b807e3256d5a3f9fa1
51+
# with:
52+
# channel: beta
53+
# - run: ./tool/android_ci_script.sh
54+
5355
# Verify the iOS add-to-app samples build and pass tests with the beta
5456
# channel.
5557
ios-build:

.github/workflows/main.yml

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ jobs:
3636
with:
3737
channel: ${{ matrix.flutter_version }}
3838
- run: ./tool/flutter_ci_script_${{ matrix.flutter_version }}.sh
39+
3940
web-samples-index:
4041
name: web/samples_index config check
4142
runs-on: ubuntu-latest
@@ -46,19 +47,21 @@ jobs:
4647
dart pub get
4748
dart run grinder generate
4849
working-directory: web/samples_index
49-
android-build:
50-
runs-on: ubuntu-latest
51-
if: github.repository == 'flutter/samples'
52-
steps:
53-
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
54-
- uses: actions/setup-java@6a0805fcefea3d4657a47ac4c165951e33482018
55-
with:
56-
distribution: 'zulu'
57-
java-version: '17'
58-
- uses: subosito/flutter-action@44ac965b96f18d999802d4b807e3256d5a3f9fa1
59-
with:
60-
channel: stable
61-
- run: ./tool/android_ci_script.sh
50+
51+
# android-build:
52+
# runs-on: ubuntu-latest
53+
# if: github.repository == 'flutter/samples'
54+
# steps:
55+
# - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
56+
# - uses: actions/setup-java@6a0805fcefea3d4657a47ac4c165951e33482018
57+
# with:
58+
# distribution: 'zulu'
59+
# java-version: '17'
60+
# - uses: subosito/flutter-action@44ac965b96f18d999802d4b807e3256d5a3f9fa1
61+
# with:
62+
# channel: stable
63+
# - run: ./tool/android_ci_script.sh
64+
6265
ios-build:
6366
runs-on: macos-latest
6467
if: github.repository == 'flutter/samples'

ai_recipe_generation/lib/features/prompt/prompt_screen.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ class PromptScreen extends StatelessWidget {
223223
iconColor: Colors.black45,
224224
buttonBackgroundColor: Colors.transparent,
225225
hoverColor:
226-
MarketplaceTheme.secondary.withOpacity(.1),
226+
MarketplaceTheme.secondary.withAlpha(25),
227227
),
228228
),
229229
const Spacer(flex: 1),
@@ -292,7 +292,7 @@ class PromptScreen extends StatelessWidget {
292292
icon: Symbols.restart_alt,
293293
iconColor: Colors.black45,
294294
buttonBackgroundColor: Colors.transparent,
295-
hoverColor: MarketplaceTheme.secondary.withOpacity(.1),
295+
hoverColor: MarketplaceTheme.secondary.withAlpha(25),
296296
),
297297
),
298298
const SizedBox(height: 200.0),
@@ -322,7 +322,7 @@ class _FilterChipSection extends StatelessWidget {
322322
child: Container(
323323
height: 230,
324324
decoration: BoxDecoration(
325-
color: Theme.of(context).splashColor.withOpacity(.1),
325+
color: Theme.of(context).splashColor.withAlpha(25),
326326
border: Border.all(
327327
color: MarketplaceTheme.borderColor,
328328
),

ai_recipe_generation/lib/features/prompt/widgets/image_input_widget.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ class _CameraViewState extends State<CameraView> {
201201
right: 0,
202202
height: 89.5,
203203
child: Container(
204-
color: Colors.black.withOpacity(.7),
204+
color: Colors.black.withAlpha(179),
205205
child: Row(
206206
mainAxisAlignment: MainAxisAlignment.spaceBetween,
207207
children: [
@@ -247,7 +247,7 @@ class _CameraViewState extends State<CameraView> {
247247
right: 0,
248248
height: 150,
249249
child: Container(
250-
color: Colors.black.withOpacity(.7),
250+
color: Colors.black.withAlpha(179),
251251
child: Row(
252252
mainAxisAlignment: MainAxisAlignment.center,
253253
children: [

ai_recipe_generation/lib/features/recipes/saved_recipes_screen.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ class _ListTileState extends State<_ListTile> {
193193
bottomLeft:
194194
Radius.circular(MarketplaceTheme.defaultBorderRadius),
195195
),
196-
color: color.withOpacity(.3),
196+
color: color.withAlpha(77),
197197
),
198198
padding: const EdgeInsets.all(MarketplaceTheme.spacing7),
199199
child: Stack(

ai_recipe_generation/lib/features/recipes/widgets/recipe_display_widget.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ class RecipeDisplayWidget extends StatelessWidget {
7676
children: [
7777
Container(
7878
padding: const EdgeInsets.all(MarketplaceTheme.defaultBorderRadius),
79-
color: MarketplaceTheme.primary.withOpacity(.5),
79+
color: MarketplaceTheme.primary.withAlpha(128),
8080
child: Column(
8181
crossAxisAlignment: CrossAxisAlignment.start,
8282
children: [
@@ -106,7 +106,7 @@ class RecipeDisplayWidget extends StatelessWidget {
106106
style: ButtonStyle(
107107
backgroundColor: WidgetStateColor.resolveWith((states) {
108108
if (states.contains(WidgetState.hovered)) {
109-
return MarketplaceTheme.scrim.withOpacity(.6);
109+
return MarketplaceTheme.scrim.withAlpha(153);
110110
}
111111
return Colors.white;
112112
}),

ai_recipe_generation/lib/router.dart

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,7 @@ class _AdaptiveRouterState extends State<AdaptiveRouter>
3535
super.initState();
3636
tabController = TabController(length: 2, vsync: this);
3737
_textStyle = MarketplaceTheme.heading1.copyWith(
38-
color: Colors.black87.withOpacity(
39-
1.0,
40-
),
38+
color: Colors.black87.withAlpha(255),
4139
);
4240

4341
scrollController = ScrollController();
@@ -60,7 +58,7 @@ class _AdaptiveRouterState extends State<AdaptiveRouter>
6058
// By offset 200, ensure the text is transparent
6159
if (scrollController.offset > 200) {
6260
_textStyle = _textStyle.copyWith(
63-
color: Colors.black87.withOpacity(0),
61+
color: Colors.black87.withAlpha(0),
6462
);
6563
return;
6664
}
@@ -73,9 +71,7 @@ class _AdaptiveRouterState extends State<AdaptiveRouter>
7371
if (value > 1) value = 1;
7472
if (value < 0) value = 0;
7573
_textStyle = _textStyle.copyWith(
76-
color: Colors.black87.withOpacity(
77-
value,
78-
),
74+
color: Colors.black87.withAlpha((255 * value).ceil()),
7975
);
8076
});
8177
}

ai_recipe_generation/lib/util/tap_recorder.dart

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,10 @@ class _RenderTapRecorder extends RenderProxyBox with _SilentTickerProvider {
9696
Rect.fromCircle(center: tap.localPosition, radius: _tapRadius));
9797
final opacity = 1 - tap.animation.value;
9898

99-
canvas.drawShadow(
100-
path, _shadowColor.withOpacity(opacity), _shadowElevation, true);
101-
canvas.drawPath(path, Paint()..color = _tapColor.withOpacity(opacity));
99+
canvas.drawShadow(path, _shadowColor.withAlpha((2565 * opacity).ceil()),
100+
_shadowElevation, true);
101+
canvas.drawPath(
102+
path, Paint()..color = _tapColor.withAlpha((2565 * opacity).ceil()));
102103
}
103104
}
104105
}

ai_recipe_generation/lib/widgets/add_image_widget.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ class _AddImageState extends State<AddImage> {
2727
var state = (hovered, tappedDown);
2828
return switch (state) {
2929
// tapped down state
30-
(_, true) => MarketplaceTheme.secondary.withOpacity(.7),
30+
(_, true) => MarketplaceTheme.secondary.withAlpha(179),
3131
// hovered
32-
(true, _) => MarketplaceTheme.secondary.withOpacity(.3),
32+
(true, _) => MarketplaceTheme.secondary.withAlpha(77),
3333
// base color
34-
(_, _) => MarketplaceTheme.secondary.withOpacity(.3),
34+
(_, _) => MarketplaceTheme.secondary.withAlpha(77),
3535
};
3636
}
3737

ai_recipe_generation/lib/widgets/filter_chip_selection_input.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,10 @@ class _CategorySelectionInputState<T extends Enum>
5151
return FilterChip(
5252
color: WidgetStateColor.resolveWith((states) {
5353
if (states.contains(WidgetState.hovered)) {
54-
return MarketplaceTheme.secondary.withOpacity(.5);
54+
return MarketplaceTheme.secondary.withAlpha(128);
5555
}
5656
if (states.contains(WidgetState.selected)) {
57-
return MarketplaceTheme.secondary.withOpacity(.3);
57+
return MarketplaceTheme.secondary.withAlpha(77);
5858
}
5959
return Theme.of(context).splashColor;
6060
}),

0 commit comments

Comments
 (0)