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/ruby@3.0/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( | |
... |
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
final Set<Marker> _markers = {}; | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( | |
... | |
GoogleMap( | |
... | |
markers: _markers, | |
), |
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
#include "AppDelegate.h" | |
#include "GeneratedPluginRegistrant.h" | |
// Add the GoogleMaps import. | |
#import "GoogleMaps/GoogleMaps.h" | |
@implementation AppDelegate | |
- (BOOL)application:(UIApplication *)application | |
didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { | |
// Add the following line with your API key. |
NewerOlder