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
class MyHomePage extends StatefulWidget { | |
MyHomePage({Key key, this.title}) : super(key: key); | |
final String title; | |
@override | |
_MyHomePageState createState() => _MyHomePageState(); | |
} | |
class _MyHomePageState extends State<MyHomePage> { | |
final TextEditingController _textEditingController = TextEditingController(); |
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(MyApp()); | |
} | |
class MyApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return 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
import 'package:flutter/material.dart'; | |
import 'loading_indicator.dart'; | |
class LoadingDialogBuilder { | |
LoadingDialogBuilder(this.context); | |
final BuildContext context; | |
void showLoadingIndicator([String text]) { | |
showDialog( |
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'; | |
class LoadingIndicator extends StatelessWidget{ | |
LoadingIndicator({this.text = ''}); | |
final String text; | |
@override | |
Widget build(BuildContext context) { | |
var displayedText = text; |
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 { Promise as EmberPromise } from 'rsvp'; | |
import { inject as service } from '@ember/service'; | |
import DS from 'ember-data'; | |
import Ember from 'ember'; | |
const {Logger} = Ember; | |
export default DS.Adapter.extend({ | |
websocketConnectionService: service('websocket-connection-service'), | |
callbacks: {}, |