Remove use of activity.mojom (#6317)

Instead, we now interact with the system navigator via SystemNavigator.
This commit is contained in:
Adam Barth
2016-10-13 15:16:54 -07:00
committed by GitHub
parent e8168401e5
commit 6e5c192cef
9 changed files with 38 additions and 97 deletions

View File

@@ -1,25 +0,0 @@
// Copyright 2015 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 'package:flutter/widgets.dart';
import 'package:flutter/services.dart';
void main() {
runApp(new GestureDetector(
onTap: () {
Intent intent = new Intent()
..action = 'android.intent.action.VIEW'
..url = 'http://flutter.io/';
activity.startActivity(intent);
},
child: new Container(
decoration: const BoxDecoration(
backgroundColor: const Color(0xFF006600)
),
child: new Center(
child: new Text('Tap to launch a URL!')
)
)
));
}