- Copy Dart SDK (
${FLUTTER_DIR}/bin/cache/dart-sdk/include) to your project, e.g.ios/Classes/ - Add your own code like the following fragment
#include "dart_api_dl.h"
// Receives NativePort ID from Flutter code
static Dart_Port_DL dart_port = 0;| import 'dart:math'; | |
| import 'package:flutter/material.dart'; | |
| import 'package:flutter/rendering.dart'; | |
| void main() { | |
| runApp(MyApp()); | |
| } | |
| class MyApp extends StatelessWidget { | |
| @override |
| import 'package:advert_app/utils/logging.dart'; | |
| import 'package:flutter/widgets.dart'; | |
| import 'package:flutter/gestures.dart'; | |
| class ScalingGestureDetector extends StatefulWidget { | |
| final Widget child; | |
| final void Function(Offset initialPoint) onPanStart; | |
| final void Function(Offset initialPoint, Offset delta) onPanUpdate; | |
| final void Function() onPanEnd; |
| import 'package:flutter/cupertino.dart'; | |
| import 'package:flutter/gestures.dart'; | |
| class PanAndScalingGestureRecognizer extends StatefulWidget { | |
| final Widget child; | |
| final void Function(Offset initialPoint) onPanStart; | |
| final void Function(Offset initialPoint, Offset delta) onPanUpdate; | |
| final void Function() onPanEnd; | |
| final void Function(Offset initialFocusPoint) onScalingStart; |
| private static OkHttpClient getUnsafeOkHttpClient() { | |
| try { | |
| // Create a trust manager that does not validate certificate chains | |
| final TrustManager[] trustAllCerts = new TrustManager[]{ | |
| new X509TrustManager() { | |
| @Override | |
| public void checkClientTrusted(java.security.cert.X509Certificate[] chain, | |
| String authType) throws CertificateException { | |
| } |
| /* | |
| * Copyright (C) 2015 The Android Open Source Project | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 | |
| * | |
| * Unless required by applicable law or agreed to in writing, software |
| 23.21.150.121:3478 | |
| iphone-stun.strato-iphone.de:3478 | |
| numb.viagenie.ca:3478 | |
| s1.taraba.net:3478 | |
| s2.taraba.net:3478 | |
| stun.12connect.com:3478 | |
| stun.12voip.com:3478 | |
| stun.1und1.de:3478 | |
| stun.2talk.co.nz:3478 | |
| stun.2talk.com:3478 |
| import android.content.Intent; | |
| import android.os.Bundle; | |
| import android.support.v7.app.AppCompatActivity; | |
| import android.view.View; | |
| import android.widget.ArrayAdapter; | |
| import android.widget.Button; | |
| import android.widget.ListView; | |
| public class TransitionThemeActivity extends AppCompatActivity implements View.OnClickListener { |