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
// Copyright 2015 The Chromium 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 'dart:async'; | |
import 'dart:developer'; | |
import 'dart:isolate'; | |
import 'package:meta/meta.dart'; | |
const bool kReleaseMode = |
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:async'; | |
import 'dart:io'; | |
import 'dart:isolate'; | |
import 'package:http/http.dart' as http; | |
// ignore_for_file: unawaited_futures | |
void main([List<String> args]) { | |
// prefix0.main(["15900152"]); | |
_buildServers(); |
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()); | |
const kAmountOfSentences = 8; | |
const kSentences = [ | |
"Já defendeu o TCC?", | |
"Quantos artigos esse ano?", | |
"E as namoradinhas?", |
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
#This Github Action builds the Dart 'bin' folder on every push commited to GitHub | |
name: Build on push | |
on: [push] | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
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:async'; | |
import 'dart:io'; | |
import 'package:http/http.dart' as http; | |
///Returns the file as a stream of bytes | |
Future<Stream<List<int>>> downloadAsStream(String url) async { | |
var result = await Client().send( | |
Request( | |
"get", |
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'; | |
/*This must be added to your MaterialApp`s navigatorObservers, like: | |
* navigatorObservers: [routeObserver] | |
*/ | |
final routeObserver = RouteObserver<PageRoute>(); | |
abstract class VisibilityAwareState<T extends StatefulWidget> | |
extends State<T> with WidgetsBindingObserver, RouteAware { | |
bool _isOnScreen = true; |
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:async'; | |
extension LoadSplitterTransformerExtension<T> on Stream<T> { | |
///Splits the data events between all the listeners. | |
///The error events are still being emitted to all of them. | |
/// | |
/// ### Example | |
/// | |
/// var splitted = Stream.fromIterable([1, 2, 3]).splitLoad(); | |
/// |
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:path/path.dart' as path; | |
String getFlutterBinFolderPath() { | |
final pathString = Platform.environment['PATH']; | |
if (pathString == null) { | |
throw 'Flutter bin folder not located on PATH'; | |
} | |
final flutterPath = pathString.split(';').firstWhere( |
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
(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\]) |
OlderNewer