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
import 'dart:ui' as ui; | |
void main() { | |
// Create a paragraph | |
var paragraphStyle = ui.ParagraphStyle( | |
fontFamily: 'Roboto', | |
textDirection: ui.TextDirection.ltr, | |
maxLines: 10, | |
); | |
var paragraphBuilder = ui.ParagraphBuilder(paragraphStyle); |
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
import 'dart:ui' as ui; | |
Future<void> main() async { | |
var dispatcher = ui.PlatformDispatcher.instance; | |
dispatcher.onDrawFrame = () { | |
var sb = ui.SceneBuilder(); | |
var scene = sb.build(); | |
dispatcher.implicitView!.render(scene); | |
}; |
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
import 'dart:async'; | |
import 'dart:ui' as ui; | |
Future<void> main() async { | |
// This completer is only used to make the test wait until the frame is done. | |
var frameCompleter = Completer<void>(); | |
// The concept of "dispatcher" is likely irrelevant to the WebText proposal. | |
// It's just part of Flutter's structure of the rendering API. | |
var dispatcher = ui.PlatformDispatcher.instance; |
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
import 'dart:async'; | |
import 'dart:ui' as ui; | |
Future<void> main() async { | |
// This completer is only used to make the test wait until the frame is done. | |
var frameCompleter = Completer<void>(); | |
// The concept of "dispatcher" is likely irrelevant to the WebText proposal. | |
// It's just part of Flutter's structure of the rendering API. | |
var dispatcher = ui.PlatformDispatcher.instance; |
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
abstract interface class FlutterView { | |
FlutterViewFocusState get focusState; | |
/// The timing of these events relative to keyboard events | |
/// is such and such. | |
FlutterViewFocusStateChanged get onFocusStateChanged; | |
set onFocusStateChanged(FlutterViewFocusStateChanged callback); | |
} | |
typedef FlutterViewFocusStateChanged = Function( |
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
interface class ui.FlutterView | |
| | |
base class EngineFlutterView | |
/ | | |
/ | | |
/ | | |
base class ui.SingletonFlutterWindow final class _EngineFlutterViewImpl | |
| | |
final class EngineFlutterWindow |
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
import 'dart:ui_web' as ui_web; | |
import 'package:flutter/foundation.dart'; | |
import 'package:flutter/material.dart'; | |
import 'package:flutter/rendering.dart'; | |
import 'package:web/web.dart' as web; | |
void main() async { | |
_registerFactory(); | |
runApp(const MyApp()); |
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
#!/usr/bin/env python3 | |
from http.server import HTTPServer, SimpleHTTPRequestHandler, test | |
import sys | |
import os | |
class CORSRequestHandler (SimpleHTTPRequestHandler): | |
def end_headers (self): | |
self.send_header('Cross-Origin-Opener-Policy', 'same-origin') | |
self.send_header('Cross-Origin-Embedder-Policy', 'require-corp') | |
SimpleHTTPRequestHandler.end_headers(self) |
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
[ +11 ms] C:\code\flutter\flutter\bin\cache\dart-sdk\bin\dart.exe --disable-dart-dev | |
C:\code\flutter\flutter\bin\cache\dart-sdk\bin\snapshots\frontend_server.dart.snapshot --sdk-root C:\code\flutter\flutter\bin\cache\flutter_web_sdk/ | |
--incremental --target=dartdevc --experimental-emit-debug-metadata -DFLUTTER_WEB_AUTO_DETECT=true --output-dill | |
C:\Users\FLUTTE~1\AppData\Local\Temp\flutter_tools.57bf1561\flutter_test.7cb2f1fe\out --packages | |
C:\code\flutter\flutter\packages\flutter\.dart_tool\package_config.json -Ddart.vm.profile=false -Ddart.vm.product=false --enable-asserts | |
--track-widget-creation --filesystem-root C:\code\flutter\flutter\packages\flutter\test --filesystem-root | |
C:\Users\FLUTTE~1\AppData\Local\Temp\flutter_tools.57bf1561\flutter_test.7cb2f1fe\ --filesystem-scheme org-dartlang-app --initialize-from-dill | |
build\c7922d95bf4a2462b75c84a97c312edb.cache.dill.track.dill --platform C:\code\flutter\flutter\bin\cache\flutter_web_sdk\kernel\ddc_outline.dill | |
--verbosity=error --no-sound-null-safety | |
[ +125 |
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
class CapturedAccessibilityAnnouncement { | |
const CapturedAccessibilityAnnouncement(this.message, this.textDirection, {this.assertiveness = Assertiveness.polite}); | |
final String message; | |
final TextDirection textDirection; | |
final Assertiveness? assertiveness; | |
void matches({ | |
Matcher? message, | |
Matcher? textDirection, | |
Matcher? assertiveness, |
NewerOlder