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'; | |
| class Bloc { | |
| int _count = 0; | |
| StreamController<int> countStreamController = StreamController(); | |
| Stream<int> get counter => countStreamController.stream; | |
| Sink<int> get inCounter => countStreamController.sink; |
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/material.dart'; | |
| import 'package:flutter/services.dart'; | |
| Stream<int> stream; | |
| StreamController myStreamController = StreamController(); | |
| void main() { | |
| MyClass myClass = MyClass(); |
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
| $ flutter run -v -d chrome | |
| [ +20 ms] executing: [C:\flutter\] git -c log.showSignature=false log -n 1 --pretty=format:%H | |
| [ +85 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H | |
| [ ] 01a5d112d5ffb3547f5b3ab48bafca2104f5ad31 | |
| [ ] executing: [C:\flutter\] git describe --match v*.*.* --first-parent --long --tags | |
| [ +89 ms] Exit code 0 from: git describe --match v*.*.* --first-parent --long --tags | |
| [ ] v1.9.3-42-g01a5d112d | |
| [ +6 ms] executing: [C:\flutter\] git rev-parse --abbrev-ref --symbolic @{u} | |
| [ +63 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u} | |
| [ ] origin/master |
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/material.dart'; | |
| import 'package:flutter/scheduler.dart'; | |
| import 'package:flutter/semantics.dart'; | |
| import 'package:provider/provider.dart'; | |
| import 'main.dart'; | |
| class SplashScreen extends StatefulWidget { | |
| SplashScreenState createState() => SplashScreenState(); | |
| } |
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/material.dart'; | |
| import 'package:flutter/scheduler.dart'; | |
| import 'package:flutter/semantics.dart'; | |
| import 'package:provider/provider.dart'; | |
| import 'main.dart'; | |
| class SplashScreen extends StatefulWidget { | |
| SplashScreenState createState() => SplashScreenState(); | |
| } |
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/material.dart'; | |
| import 'package:flutter/semantics.dart'; | |
| import 'package:provider/provider.dart'; | |
| import 'main.dart'; | |
| class SplashScreen extends StatefulWidget { | |
| SplashScreenState createState() => SplashScreenState(); | |
| } |
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/material.dart'; | |
| import 'package:flutter/semantics.dart'; | |
| import 'package:provider/provider.dart'; | |
| import 'main.dart'; | |
| class BuilderLoading extends StatefulWidget { | |
| BuilderLoadingState createState() => BuilderLoadingState(); | |
| } |
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/material.dart'; | |
| import 'package:flutter/semantics.dart'; | |
| import 'package:provider/provider.dart'; | |
| import 'main.dart'; | |
| class BuilderLoading extends StatelessWidget { | |
| @override | |
| Widget build(BuildContext context) { | |
| TenderApiProvider apiProv = Provider.of<TenderApiProvider>(context); |
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
| class BuilderLoading extends StatelessWidget { | |
| @override | |
| Widget build(BuildContext context) { | |
| TenderApiProvider apiProv = Provider.of<TenderApiProvider>(context); | |
| // apiProv.getToken(); | |
| return StreamBuilder( | |
| stream: apiProv.resultController, | |
| builder: (BuildContext context, AsyncSnapshot snapshot) { | |
| String tokenLoadingState = ''; | |
| String regionsLoadingState = ''; |
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:io'; | |
| import 'dart:async'; | |
| import 'package:flutter/material.dart'; | |
| import 'package:flutter/semantics.dart'; | |
| import 'package:flutter/widgets.dart'; | |
| import 'package:http/http.dart' as http; | |
| import 'select_regions.dart'; | |
| import 'select_industry.dart'; | |
| import 'select_customer.dart'; // заказчик |