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
// Copyright 2024 The Chromium 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:collection'; | |
import 'package:flutter/foundation.dart'; | |
/// A [ChangeNotifier] that holds a [ListQueue] of data. | |
/// |
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
diff --git a/packages/devtools_app/lib/src/screens/logging/logging_screen.dart b/packages/devtools_app/lib/src/screens/logging/logging_screen.dart | |
index 6cbbce948..3f7e266f4 100644 | |
--- a/packages/devtools_app/lib/src/screens/logging/logging_screen.dart | |
+++ b/packages/devtools_app/lib/src/screens/logging/logging_screen.dart | |
@@ -1,9 +1,8 @@ | |
-// Copyright 2019 The Chromium Authors. All rights reserved. | |
-// Use of this source code is governed by a BSD-style license that can be | |
+// Copyright 2019 The Chromium Authors. All rights reserved. | |
+// Use of this source code is governed by a BSD-style license that can be | |
// found in the LICENSE file. |
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
+ [[ macOS == \W\i\n\d\o\w\s ]] | |
+ '[' '!' -d ./flutter-sdk ']' | |
++ pwd | |
++ pwd | |
++ pwd | |
+ export PATH=/Users/runner/work/devtools/devtools/flutter-sdk/bin/cache/dart-sdk/bin:/Users/runner/work/devtools/devtools/flutter-sdk/bin:/Users/runner/work/devtools/devtools/bin:/usr/local/lib/ruby/gems/3.0.0/bin:/usr/local/opt/[email protected]/bin:/usr/local/opt/pipx_bin:/Users/runner/.cargo/bin:/usr/local/opt/curl/bin:/usr/local/bin:/usr/local/sbin:/Users/runner/bin:/Users/runner/.yarn/bin:/Users/runner/Library/Android/sdk/tools:/Users/runner/Library/Android/sdk/platform-tools:/Library/Frameworks/Python.framework/Versions/Current/bin:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/usr/bin:/bin:/usr/sbin:/sbin:/Users/runner/.dotnet/tools:/Users/runner/.ghcup/bin:/Users/runner/hostedtoolcache/stack/2.11.1/x64 | |
+ PATH=/Users/runner/work/devtools/devtools/flutter-sdk/bin/cache/dart-sdk/bin:/Users/runner/work/devtools/devtools/flutter-sdk/bin:/Users/runner/work/devtools/devtools/bin:/usr/local/lib/ruby/gems/3.0.0/bin:/usr/ |
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:io'; | |
Future<void> main() async { | |
final testApp = TestFlutterApp( | |
// For reproducing, this should be the path to a flutter app, relative to the directory | |
// that this main.dart script lives in. | |
'develop/devtools/packages/devtools_app/test/test_infra/fixtures/flutter_app', | |
); | |
await testApp.startProcess(); |
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 'package:flutter/material.dart'; | |
class GrayPage extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return Container( | |
decoration: BoxDecoration( | |
gradient: LinearGradient( | |
begin: Alignment.topLeft, | |
end: Alignment.bottomRight, |
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:html' as html; | |
import 'dart:ui' as ui; | |
import 'package:flutter/material.dart'; | |
void main() { | |
final controller = Controller()..init(); | |
runApp(EmbeddedIFrameExample(controller)); | |
} |
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 'package:flutter/material.dart'; | |
final Color darkBlue = Color.fromARGB(255, 18, 32, 47); | |
void main() { | |
runApp(MyApp()); | |
} | |
class MyApp extends StatelessWidget { | |
@override |
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:math'; | |
class Position { | |
int x; | |
int y; | |
double distanceTo(Position other) { | |
var dx = other.x - x; | |
var dy = other.y - y; | |
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
void _onAddMarkerButtonPressed() { | |
setState(() { | |
_markers.add(Marker( | |
// This marker id can be anything that uniquely identifies each marker. | |
markerId: MarkerId(_lastMapPosition.toString()), | |
position: _lastMapPosition, | |
infoWindow: InfoWindow( | |
title: 'Really cool place', | |
snippet: '5 Star Rating', | |
), |
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
LatLng _lastMapPosition = _center; | |
void _onCameraMove(CameraPosition position) { | |
_lastMapPosition = position.target; | |
} | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( | |
... |
NewerOlder