This file contains hidden or 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
'use strict'; | |
function calc(inputs) | |
{ | |
var output = {}; | |
var str = inputs.str; | |
var pwr = inputs.pwr; | |
var lvl = inputs.lvl; | |
var vit = inputs.vit; | |
/* |
This file contains hidden or 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 MyApp extends StatefulWidget { | |
@override | |
_MyAppState createState() => new _MyAppState(); | |
} | |
class _MyAppState extends State<MyApp> { | |
int _currentStep = 0; |
This file contains hidden or 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 main() { | |
futureTest(); | |
} | |
futureTest() async { | |
final watch = Stopwatch()..start(); | |
print("elapsed: ${watch.elapsedMilliseconds}"); | |
final futureInt = Future.delayed(Duration(seconds: 2), () => 1); | |
final futureString = Future<String>.delayed(Duration(seconds: 2), () => "laterz"); |
This file contains hidden or 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
// Copyright 2014 The Flutter 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/material.dart'; | |
class ExpansionTileSample extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( |
OlderNewer