-
Place the supervisord.conf under .ebextensions/supervisor/
-
Place the supervisor.config under .ebextensions/
-
Place the data_import_consumer.conf under .ebextensions/supervisor/
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
export class StreamMixer { | |
streams: Array<{ | |
id: string, | |
audioSource: any, | |
gainNode: any, | |
mediaStream: MediaStream | |
}>; | |
destination: any; | |
audioCtx: any; |
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:math' as math; | |
import 'package:flutter/material.dart'; | |
import 'package:flutter/rendering.dart'; | |
import 'package:flutter/scheduler.dart'; | |
void main() => runApp(ExampleApp()); | |
class ExampleApp extends StatelessWidget { | |
@override |
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
// BLOC | |
class ErrorBloc extends Bloc<ErrorBlocEvent, ErrorBlocState> { | |
@override | |
Stream<ClaimState> mapEventToState(ErrorBlocState currentState, ErrorBlocEvent event) async* { | |
if (event is SomeEvent) { | |
yield Processing(); | |
final result = await _doSomething(); | |
if(result.success) { | |
yield Success(); |
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 GradientText extends StatelessWidget { | |
const GradientText(this.text, { | |
Key key, | |
@required this.gradient, | |
this.style = const TextStyle(), | |
}) : super(key: key); | |
final String text; | |
final TextStyle style; | |
final Gradient gradient; |