Skip to content

Instantly share code, notes, and snippets.

View herveGuigoz's full-sized avatar

Guigoz Herve herveGuigoz

View GitHub Profile
extension on WidgetTester {
Future<void> launchApp() async {
await app.main();
await pumpAndSettle();
}
Future<void> clearState() async {
await SharedPreferences.getInstance().then((it) => it.clear());
}
@herveGuigoz
herveGuigoz / conventional-comments.md
Created October 19, 2022 12:55 — forked from pauloportella/conventional-comments.md
How to setup conventional comments on Github

Conventional comments

Source

You can add all conventional comments Labels to Github as a saved replies by following the following steps:

  1. Go to https://github.com/settings/replies
  2. Open Developer Tools
  3. Copy/Paste above code in JavaScript console
  4. Press enter
@herveGuigoz
herveGuigoz / Flutter Clean.md
Created August 4, 2022 20:25 — forked from minhcasi/Flutter Clean.md
These are common issues on Flutter and solutions to fix

Quick Clean Cache

  1. Open android studio Tools->Flutter->Clean
  2. Go to File -> Invalidate Caches / Restart
  3. Or open terminal run "flutter clean"
  4. Remove pubspec.lock
  5. Double check the Flutter SDK Path config correcty - https://tppr.me/qn6dP

Or open the terminal and try this script:

flutter clean
@herveGuigoz
herveGuigoz / deploy.yaml
Created March 11, 2022 15:30 — forked from wendreof/deploy.yaml
publish_ghPages
name: deploy
on: #trigger on push & PR to this branch only
push:
branches:
- master
pull_request:
branches:
- master
@herveGuigoz
herveGuigoz / AdbCommands
Created January 13, 2022 23:52 — forked from Pulimet/AdbCommands
Adb useful commands list
adb help // List all comands
== Adb Server
adb kill-server
adb start-server
== Adb Reboot
adb reboot
adb reboot recovery
adb reboot-bootloader
@herveGuigoz
herveGuigoz / expand_card.dart
Created July 13, 2021 22:00 — forked from slightfoot/expand_card.dart
Expading cards - by Simon Lightfoot 21/12/2020
// MIT License
//
// Copyright (c) 2020 Simon Lightfoot
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
@herveGuigoz
herveGuigoz / scroll_to_key.dart
Created July 1, 2021 21:26 — forked from slightfoot/scroll_to_key.dart
Scroll content to widget with key - by Simon Lightfoot - 13/11/2019
// MIT License
//
// Copyright (c) 2021 Simon Lightfoot
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
@herveGuigoz
herveGuigoz / perform_with_retry.dart
Created July 1, 2021 21:25 — forked from slightfoot/perform_with_retry.dart
Function to perform a http request with retry and back-off logic. This is modified version from NetworkImageWithRetry - by Simon Lightfoot 13/05/2021
// Copyright 2017, the Flutter project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
//
// Built from : https://github.com/flutter/flutter_image/blob/master/lib/network.dart
//
import 'dart:async';
import 'dart:convert' show ByteConversionSink;
import 'dart:io' as io;
import 'dart:math' as math;
@herveGuigoz
herveGuigoz / error_capture.dart
Created April 26, 2021 12:03 — forked from slightfoot/error_capture.dart
Crash Reporting / Error Capture for Flutter
///
/// 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;
@herveGuigoz
herveGuigoz / html_element_widget.dart
Created February 1, 2021 21:04 — forked from slightfoot/html_element_widget.dart
HTML Widgets for Flutter Web (IFrame and TextArea)- by Simon Lightfoot - 21/04/2020
// MIT License
//
// Copyright (c) 2020 Simon Lightfoot
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions: