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
@override | |
Widget build(BuildContext context) { | |
return Scaffold( | |
appBar: AppBar( | |
title: Text(widget.title), | |
), | |
body: TwoPageLayout( | |
child: Center( | |
child: Column( | |
mainAxisAlignment: MainAxisAlignment.center, |
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
@override | |
Widget build(BuildContext context) { | |
return Scaffold( | |
appBar: AppBar( | |
title: Text(widget.title), | |
), | |
body: Center( | |
child: Column( | |
mainAxisAlignment: MainAxisAlignment.center, | |
children: <Widget>[ |
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'; | |
final Color darkBlue = Color.fromARGB(255, 18, 32, 47); | |
void main() { | |
runApp(MyApp()); | |
} | |
class MyApp extends StatelessWidget { | |
@override |
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 'dart:typed_data'; | |
import 'package:http/http.dart' as http; | |
import 'package:meta/meta.dart'; | |
import 'dart:convert'; | |
bool _isSuccessStatusCode(int code) => (code >= 200 && code < 300); | |
class ApiResponse<T> { | |
final int statusCode; |
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 'dart:async'; | |
import 'package:flutter/foundation.dart'; | |
import 'package:mobx/mobx.dart'; | |
class Debounce { | |
final Duration delay; | |
Timer _timer; | |
Debounce(this.delay); |
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
fun emailAppIntent() { | |
val emailIntent = Intent(Intent.ACTION_VIEW, Uri.parse("mailto:")) | |
val packageManager = packageManager | |
val activitiesHandlingEmails = packageManager.queryIntentActivities(emailIntent, 0) | |
if (activitiesHandlingEmails.isNotEmpty()) { | |
// use the first email package to create the chooserIntent | |
val firstEmailPackageName = activitiesHandlingEmails.first().activityInfo.packageName | |
val firstEmailInboxIntent = packageManager.getLaunchIntentForPackage(firstEmailPackageName) | |
val emailAppChooserIntent = Intent.createChooser(firstEmailInboxIntent, "") |
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'; | |
void main() => runApp(MaterialApp(home: Scaffold(body: MyApp()))); | |
class MyApp extends StatefulWidget { | |
@override | |
_MyAppState createState() => _MyAppState(); | |
} | |
class _MyAppState extends State<MyApp> { |
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'; | |
import 'package:flutter/foundation.dart'; | |
import 'package:flutter/widgets.dart'; | |
import 'dart:math' show pi; | |
void main() => runApp(MyHomePage()); | |
class MyHomePage extends StatefulWidget { | |
@override | |
_MyHomePageState createState() => _MyHomePageState(); |
This file has been truncated, but you can view the full file.
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
{ | |
"version": 1, | |
"set_info": { | |
"set_id": 1, | |
"pack_item_def": 1000, | |
"name": { | |
"english": "Call to Arms", | |
"german": "Ruf zu den Waffen", | |
"french": "Appel aux armes", | |
"italian": "Chiamata alle armi", |
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
{ | |
"version": 1, | |
"set_info": { | |
"set_id": 0, | |
"pack_item_def": 0, | |
"name": { | |
"english": "Base Set", | |
"german": "Basisset", | |
"french": "Ensemble de base", | |
"italian": "Set di base", |