Skip to content

Instantly share code, notes, and snippets.

Slowly but Sure

Andrew Anggada AngDrew

Slowly but Sure
View GitHub Profile
AngDrew / flutter_preload_image.dart
Last active Oct 22, 2021
preload flutter image for splash screen. so there will be no blank screen blink
View flutter_preload_image.dart
// @dart=2.12
// load_image.dart
import 'dart:async';
import 'dart:ui';
import 'package:flutter/foundation.dart';
import 'package:flutter/painting.dart';
import 'package:flutter/services.dart';
Future<void> loadImage(ImageProvider provider) {
AngDrew / my_text_field.dart
Created Apr 3, 2021
Highly customizable TextField
View my_text_field.dart
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import '../resources/r.dart';
class MyTextField extends StatefulWidget {
const MyTextField(
this.onChange, {