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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Document</title> | |
</head> |
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'; | |
const String kTitle = 'Horizontal ListWheelScrollView Sample'; | |
void main() => runApp(new ListWheelScrollViewSample()); | |
class ListWheelScrollViewSample 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
@Override | |
protected void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
// setting status bar | |
final Window window = this.getWindow(); | |
window.getDecorView().setSystemUiVisibility( | |
View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN | |
| View.SYSTEM_UI_FLAG_LAYOUT_STABLE | |
| View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR |
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
@Override | |
public void onUpdate(FrameTime frameTime) { | |
Log.e(TAG, "Elephant rotation angle: " + rotationAngle); | |
// from arcore | |
try { | |
Frame frame = arFragment.getArSceneView().getSession().update(); | |
Camera camera = frame.getCamera(); | |
CameraIntrinsics intrinsics = camera.getImageIntrinsics(); |
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'; | |
void main() { | |
getAJoke().then((value) { | |
print(value); | |
}) | |
.whenComplete(() { | |
print('Complete'); | |
}) | |
.catchError((error) { |
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
@Override | |
protected void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
// setting status bar | |
Window window = this.getWindow(); | |
window.setFlags( | |
WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS, | |
WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS); | |
window.getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR); |
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
apply plugin: 'com.android.application' | |
apply plugin: 'com.google.ar.sceneform.plugin' | |
android { | |
compileSdkVersion 27 | |
defaultConfig { | |
applicationId "com.osensetech.taoyuan" | |
minSdkVersion 24 | |
targetSdkVersion 27 | |
versionCode 1 |