forked from flutter/flutter
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into fix/slider_text_null_error
* master: (115 commits) Roll Flutter Engine from 4adf453b6d68 to 19707e811b60 (1 revision) (flutter#149291) disable Impeller on external texture test. (flutter#149292) Roll Flutter Engine from 8d5d14a1db95 to 4adf453b6d68 (12 revisions) (flutter#149290) Update 3.22.1 release notes to include missing fix. (flutter#148999) Manual roll Flutter Engine from 60968ee3bde7 to 8d5d14a1db95 (1 revision) (flutter#149263) Reverts "Prevent LayoutBuilder from rebuilding more than once (flutter#147856)" (flutter#149279) Unskip expression evaluation test (flutter#149253) temporarily disable SemanticsAction tests to unblock engine change (flutter#149274) Adds benchmark for rrect_blur. (flutter#149261) Prevent LayoutBuilder from rebuilding more than once (flutter#147856) Add test for inherited_theme.0.dart (flutter#149120) Update progress_indicator.dart to indicate the adaptive option is for both macOS and iOS (flutter#145246) _ModalScopeStatus as InheritedModel (flutter#149022) Add test for radio.toggleable.0.dart (flutter#149153) Add a sentinel value for `TextStyle.height` (flutter#149049) Remove dynamic_layouts from issue template (flutter#149252) Roll Flutter Engine from 30aa720d4999 to 60968ee3bde7 (1 revision) (flutter#149255) Roll Flutter Engine from b26e1b023cdb to 30aa720d4999 (7 revisions) (flutter#149249) Roll Packages from a933c30 to 31d3329 (6 revisions) (flutter#149246) Clean leak in editable_text_test.dart. (flutter#149223) ...
- Loading branch information
Showing
440 changed files
with
6,211 additions
and
3,187 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
c89defa558013d7790ab0fec0819c30fccae3aba | ||
19707e811b608b2ecf8633f26d534f7896b87c52 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
ba19b247d0bad15feed2ae31248b52ec0cf19785 | ||
31d332900d98b05ac15096ace0bb7a76a8fb759d |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
HHwlAJN5imwf3yX4i6DhvMFhgYzp7YIXIsEYuvsx9JEC | ||
c-Sm5-fy8c2YM7MykeRPbSf7GYgDkXFnDcNG89XheMkC |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// Copyright 2014 The Flutter Authors. All rights reserved. | ||
// Use of this source code is governed by a BSD-style license that can be | ||
// found in the LICENSE file. | ||
|
||
import 'package:a11y_assessments/main.dart'; | ||
import 'package:flutter/material.dart'; | ||
import 'package:flutter_test/flutter_test.dart'; | ||
|
||
|
||
void main() { | ||
testWidgets('Has light and dark theme', (WidgetTester tester) async { | ||
await tester.pumpWidget(const App()); | ||
final MaterialApp app = find.byType(MaterialApp).evaluate().first.widget as MaterialApp; | ||
expect(app.theme!.brightness, equals(Brightness.light)); | ||
expect(app.darkTheme!.brightness, equals(Brightness.dark)); | ||
}); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
// Copyright 2014 The Flutter Authors. All rights reserved. | ||
// Use of this source code is governed by a BSD-style license that can be | ||
// found in the LICENSE file. | ||
|
||
import 'dart:math' show cos, sin; | ||
import 'dart:typed_data'; | ||
|
||
import 'package:flutter/material.dart'; | ||
|
||
class RRectBlur extends StatefulWidget { | ||
const RRectBlur({super.key}); | ||
|
||
@override | ||
State<RRectBlur> createState() => _DrawPointsPageState(); | ||
} | ||
|
||
class _DrawPointsPageState extends State<RRectBlur> | ||
with SingleTickerProviderStateMixin { | ||
late final AnimationController controller; | ||
double tick = 0.0; | ||
|
||
@override | ||
void initState() { | ||
super.initState(); | ||
controller = | ||
AnimationController(vsync: this, duration: const Duration(hours: 1)); | ||
controller.addListener(() { | ||
setState(() { | ||
tick += 1; | ||
}); | ||
}); | ||
controller.forward(from: 0); | ||
} | ||
|
||
@override | ||
void dispose() { | ||
controller.dispose(); | ||
super.dispose(); | ||
} | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return CustomPaint( | ||
size: const Size(500, 500), | ||
painter: PointsPainter(tick), | ||
child: Container(), | ||
); | ||
} | ||
} | ||
|
||
class PointsPainter extends CustomPainter { | ||
PointsPainter(this.tick); | ||
|
||
final double tick; | ||
|
||
final Float32List data = Float32List(8000); | ||
|
||
static const List<Color> kColors = <Color>[ | ||
Colors.red, | ||
Colors.blue, | ||
Colors.green, | ||
Colors.yellow, | ||
Colors.orange, | ||
Colors.purple, | ||
Colors.pink, | ||
Colors.deepPurple, | ||
]; | ||
|
||
@override | ||
void paint(Canvas canvas, Size size) { | ||
if (size.width == 0) { | ||
return; | ||
} | ||
final double halfHeight = size.height / 2.0; | ||
const double freq = 0.25; | ||
for (int i = 0; i < size.width / 10; ++i) { | ||
final double radius = | ||
25 * cos(i + (1.0 * 2.0 * 3.1415 * tick) / 60.0) + | ||
25; | ||
final Paint paint = Paint() | ||
..style = PaintingStyle.fill | ||
..filterQuality = FilterQuality.low | ||
..maskFilter = MaskFilter.blur(BlurStyle.normal, radius); | ||
final double yval = | ||
halfHeight * sin(i + (freq * 2.0 * 3.1415 * tick) / 60.0) + | ||
halfHeight; | ||
canvas.drawCircle( | ||
Offset(10.0 * i, yval), | ||
50, | ||
paint..color = kColors[i % kColors.length], | ||
); | ||
} | ||
} | ||
|
||
@override | ||
bool shouldRepaint(covariant CustomPainter oldDelegate) { | ||
return true; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
dev/benchmarks/macrobenchmarks/test_driver/rrect_blur_perf_test.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// Copyright 2014 The Flutter Authors. All rights reserved. | ||
// Use of this source code is governed by a BSD-style license that can be | ||
// found in the LICENSE file. | ||
|
||
import 'package:macrobenchmarks/common.dart'; | ||
|
||
import 'util.dart'; | ||
|
||
void main() { | ||
macroPerfTest( | ||
'rrect_blur_perf', | ||
kRRectBlurRouteName, | ||
pageDelay: const Duration(seconds: 1), | ||
duration: const Duration(seconds: 10), | ||
); | ||
} |
Oops, something went wrong.