Skip to content

Instantly share code, notes, and snippets.

View herveGuigoz's full-sized avatar

Guigoz Herve herveGuigoz

View GitHub Profile
@slightfoot
slightfoot / defer_init.dart
Last active July 19, 2023 12:51
Defer initialization of your UI based on a background service - by Simon Lightfoot - 29/12/2020 - Null Safe!
import 'dart:math' show Random;
import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart' show RendererBinding;
void main() {
runApp(MaterialApp(
home: Home(),
));
}
@karlredman
karlredman / minio-through-caddy.md
Last active January 26, 2024 15:11
# Serve static pages from minio through caddy
@im182cm
im182cm / gist:2c7723d42b2d7091af6c493b97b732b7
Last active November 23, 2024 11:01
How to close CustomTab

How to close CustomTab

When using CustomTab, it has no close method. To close CustomTab, should use Braodcast and call the activity which opened CustomTab again.

Good Example from Facebook SDK

I have fixed some of codes for essential behavior.

gradle setting

Add a library below.

dependencies {