mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00

8c521eb241...6a3b0216ff
2024-02-09 30870216+gaaclarke@users.noreply.github.com [Impeller] cleaned up StrokePathGeometry and removed runtime polymorphism (flutter/engine#50506)
2024-02-09 ditman@gmail.com [web] Fix HtmlViewEmbedder.dispose (flutter/engine#50482)
2024-02-09 skia-flutter-autoroll@skia.org Roll Dart SDK from 03130d49f214 to 444f7a422da4 (6 revisions) (flutter/engine#50502)
2024-02-09 jonahwilliams@google.com [Impeller] improve performance of polyline and stroke generation by reducing allocation and lambda usage. (flutter/engine#50379)
If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-engine-flutter-autoroll
Please CC chinmaygarde@google.com,rmistry@google.com,zra@google.com on the revert to ensure that a human
is aware of the problem.
To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose
To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622
Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
30 lines
924 B
Dart
30 lines
924 B
Dart
// 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:convert' show utf8;
|
|
|
|
import 'package:flutter/foundation.dart';
|
|
import 'package:flutter/widgets.dart';
|
|
|
|
Future<void> main() async {
|
|
const Text text = Text('Hello, world!', textDirection: TextDirection.ltr);
|
|
// These calls must not result in an error. They behave differently in
|
|
// release mode compared to debug or profile.
|
|
// The test will grep logcat for any errors emitted by Flutter.
|
|
print(text.toDiagnosticsNode());
|
|
print(text.toStringDeep());
|
|
// regression test for https://github.com/flutter/flutter/issues/49601
|
|
final List<int> computed = await compute(_utf8Encode, 'test');
|
|
print(computed);
|
|
runApp(
|
|
const Center(
|
|
child: text,
|
|
),
|
|
);
|
|
}
|
|
|
|
List<int> _utf8Encode(String data) {
|
|
return utf8.encode(data);
|
|
}
|