Skip to content

Instantly share code, notes, and snippets.

PS C:\Entwicklung\Projects\Aaronia\trunk\Sources\RTSAMobileDev\aartos> flutter run -d windows -v [ +26 ms] executing: [C:\Entwicklung\Flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H [ +61 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H [ ] ec1044a8773e31b4630bf162d9c374236ad1eaaf [ ] executing: [C:\Entwicklung\Flutter/] git describe --match v*.. --first-parent --long --tags [ +84 ms] Exit code 0 from: git describe --match v*.. --first-parent --long --tags [ ] v1.14.1-51-gec1044a877 [ +7 ms] executing: [C:\Entwicklung\Flutter/] git rev-parse --abbrev-ref --symbolic @{u} [ +39 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u} [ ] origin/master

Hi, I have the problem that a Test that is used in the demo of rx_widgets longer works:

test('should filter after the user stops typing for 500ms', () async {
    // Use FakeAsync from the Quiver package to simulate time
    new FakeAsync().run((time) {
    final service = new MockService();
    final model = new HomePageModel(service);

    when(service.getWeatherEntriesForCity(any))
GetIt supports since recently a mechanic to make initialization of registered
Instances easier.
The idea is that you can mark Singletons/LazySingletons that they will signal
when they are ready.
You then can wait for either that all are ready or that one of them is ready or
trigger the readyFuture manually
In case of a timeout you get detailed debug information.
@escamoteur
escamoteur / error_capture.dart
Created September 20, 2019 09:24
Helper class to send event to sentry
import 'dart:async';
import 'dart:io';
import 'dart:ui' as ui show window;
import 'package:connectivity/connectivity.dart';
import 'package:device_info/device_info.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter/widgets.dart';
import 'package:package_info/package_info.dart';
@escamoteur
escamoteur / nextField.dart
Created September 13, 2019 12:22
So easy is it now to implement a next field behavior for forms, meaning that the focus is moved as soon the user tabs the next button on the keyboard
class _MyHomePageState extends State<MyHomePage>
with SingleTickerProviderStateMixin {
TabController _tabController;
FocusScopeNode _node = FocusScopeNode(); /// <-----------------
@override
void initState() {
_tabController = TabController(length: 3, vsync: this);
RxCommandListener<ImageStorageRequest, ImageLocation> selectImageListener;
RxCommandListener<ChatEntry, void> deleteChatEntryListener;
@override
void initState() {
super.initState();
selectImageListener = RxCommandListener(
command: sl.get<ImageManager>().selectAndUploadImageCommand,
onValue: (imageLocation) async {
MyInheritedWidget.of(context).myProperty
///
/// Flutter Captured Error Reporting
/// Created by Simon Lightfoot
///
/// Copyright (C) DevAngels Limited 2018
/// License: APACHE 2.0 - https://www.apache.org/licenses/LICENSE-2.0
///
import 'dart:async';
import 'dart:io';
import 'dart:ui' as ui show window;
@escamoteur
escamoteur / gist:c7727244b402b8d6caf33868ba61e9ab
Created March 14, 2017 16:02
Rebuild of Android Project
This file has been truncated, but you can view the full file.
Failed to resolve all items referenced by 'JistTV\JistTV.APITester\JistTV.APITester.csproj'. This message can typically be ignored. The issue may be resolved by fully restoring and building the solution. If the unresolved item is a project reference this can lead to an incomplete NuGet restore result and missing package references. To ensure that restore is able to find all projects verify that all projects are referenced correctly and exist on disk.
Failed to resolve all items referenced by 'JistClient\JistClient.csproj'. This message can typically be ignored. The issue may be resolved by fully restoring and building the solution. If the unresolved item is a project reference this can lead to an incomplete NuGet restore result and missing package references. To ensure that restore is able to find all projects verify that all projects are referenced correctly and exist on disk.
Restoring NuGet packages...
To prevent NuGet from restoring packages during build, open the Visual Studio Options dialog, click on th
InspectorDebugSession(5): StateChange: Start -> EntryPointBreakpointRegistered
InspectorDebugSession(5): Constructed
Android application is debugging.
InspectorDebugSession(5): HandleTargetEvent: TargetReady
03-13 16:03:28.877 I/art ( 4766): Not late-enabling -Xcheck:jni (already on)
03-13 16:03:28.890 W/monodroid( 4766): Using override path: /data/user/0/tv.jist.JistTV/files/.__override__
03-13 16:03:28.890 W/monodroid( 4766): Using override path: /storage/emulated/0/Android/data/tv.jist.JistTV/files/.__override__
03-13 16:03:28.891 W/monodroid( 4766): Trying to load sgen from: /data/user/0/tv.jist.JistTV/files/.__override__/libmonosgen-2.0.so
03-13 16:03:28.891 W/monodroid( 4766): Trying to load sgen from: /storage/emulated/0/Android/data/tv.jist.JistTV/files/.__override__/libmonosgen-2.0.so
03-13 16:03:28.891 W/monodroid( 4766): Trying to load sgen from: /data/app/tv.jist.JistTV-1/lib/x86/libmonosgen-2.0.so