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
Syncing files to device iPhone X... | |
flutter: ══╡ EXCEPTION CAUGHT BY GESTURE ╞═══════════════════════════════════════════════════════════════════ | |
flutter: The following assertion was thrown while handling a gesture: | |
flutter: type '_BroadcastSubscription<Location>' is not a subtype of type 'StreamSubscription<Null>' | |
flutter: | |
flutter: Either the assertion indicates an error in the framework itself, or we should provide substantially | |
flutter: more information in this error message to help you determine and fix the underlying cause. | |
flutter: In either case, please report this assertion by filing a bug on GitHub: | |
flutter: https://github.com/flutter/flutter/issues/new | |
flutter: |
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
Syncing files to device iPhone X... | |
flutter: ══╡ EXCEPTION CAUGHT BY GESTURE ╞═══════════════════════════════════════════════════════════════════ | |
flutter: The following assertion was thrown while handling a gesture: | |
flutter: type '_BroadcastSubscription<Location>' is not a subtype of type 'StreamSubscription<Null>' | |
flutter: | |
flutter: Either the assertion indicates an error in the framework itself, or we should provide substantially | |
flutter: more information in this error message to help you determine and fix the underlying cause. | |
flutter: In either case, please report this assertion by filing a bug on GitHub: | |
flutter: https://github.com/flutter/flutter/issues/new | |
flutter: |
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 'package:flutter/material.dart'; | |
import 'package:map_view/map_view.dart'; | |
import 'dart:io' show Platform; | |
///This API Key will be used for both the interactive maps as well as the static maps. | |
///Make sure that you have enabled the following APIs in the Google API Console (https://console.developers.google.com/apis) | |
/// - Static Maps API | |
/// - Android Maps API |
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'; | |
//import 'package:validate/validate.dart'; //for validation | |
void main() { | |
runApp(new MyApp()); | |
} | |
class MyApp extends StatefulWidget { | |
@override | |
State<StatefulWidget> createState() { |
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
static const VertexPositionColor cubeVertices[] = | |
{ | |
{XMFLOAT3(-0.5f, -0.5f, -0.5f), XMFLOAT3(0.0f, 0.0f, 0.0f)}, | |
{XMFLOAT3(-0.5f, -0.5f, 0.5f), XMFLOAT3(0.0f, 0.0f, 1.0f)}, | |
{XMFLOAT3(-0.5f, 0.5f, -0.5f), XMFLOAT3(0.0f, 1.0f, 0.0f)}, | |
{XMFLOAT3(-0.5f, 0.5f, 0.5f), XMFLOAT3(0.0f, 1.0f, 1.0f)}, | |
{XMFLOAT3( 0.5f, -0.5f, -0.5f), XMFLOAT3(1.0f, 0.0f, 0.0f)}, | |
{XMFLOAT3( 0.5f, -0.5f, 0.5f), XMFLOAT3(1.0f, 0.0f, 1.0f)}, | |
{XMFLOAT3( 0.5f, 0.5f, -0.5f), XMFLOAT3(1.0f, 1.0f, 0.0f)}, | |
{XMFLOAT3( 0.5f, 0.5f, 0.5f), XMFLOAT3(1.0f, 1.0f, 1.0f)}, |
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
var anim = this.getComponent(cc.Animation); | |
if(anim != null) | |
{ | |
anim.play(); | |
var anim = this.getComponent(cc.Animation); | |
var animState = anim.play("TigerRun"); | |
// accelerate the playing speed of animation | |
animState.speed = 2; |
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
if (!cc.runtime) { | |
// runtime not support dragonbones. | |
var NORMAL_ANIMATION_GROUP = "normal"; | |
var AIM_ANIMATION_GROUP = "aim"; | |
var ATTACK_ANIMATION_GROUP = "attack"; | |
var JUMP_SPEED = -20; | |
var NORMALIZE_MOVE_SPEED = 3.6; | |
var MAX_MOVE_SPEED_FRONT = NORMALIZE_MOVE_SPEED * 1.4; |
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'; | |
void main() { | |
runApp(new MyApp()); | |
} | |
class MyApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return new 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
<?php | |
namespace App\Http\Controllers; | |
use Illuminate\Http\Request; | |
use App\Http\Controllers\Controller; | |
use Illuminate\Support\Facades\Auth; | |
class APIController extends Controller | |
{ |
OlderNewer