flash_image 0.0.1 flash_image: ^0.0.1 copied to clipboard
Flash image package for image loading from asset or network wether it's svg or jpg, png, etc... with shimmer effect
import 'package:flash_image/constants/flash_img_constant.dart';
import 'package:flash_image/flash_image.dart';
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatefulWidget {
const MyApp({Key? key}) : super(key: key);
@override
State<MyApp> createState() => _MyAppState();
}
class _MyAppState extends State<MyApp> {
@override
Widget build(BuildContext context) => const MaterialApp(
home: MyScreen(),
);
}
class MyScreen extends StatefulWidget {
const MyScreen({super.key});
@override
State<MyScreen> createState() => _MyScreenState();
}
class _MyScreenState extends State<MyScreen> {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: const Text('Flash Text Example 1'),
),
body: Column(
children: const [
FlashImage(
imgURL: FlashImgConstant.svgPlaceholder,
),
FlashImage(
imgURL: "https://codeflashinfotech.com/favicon.svg",
),
],
),
);
}
}