blurhash 0.2.0 blurhash: ^0.2.0 copied to clipboard
A very compact representation of a placeholder for an image.
import 'package:flutter/material.dart';
import 'home_page.dart';
import 'blurhash_image_page.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
home: DefaultTabController(
length: 2,
child: Scaffold(
appBar: AppBar(
bottom: TabBar(
tabs: [
Tab(text: "Home"),
Tab(text: "BlurHash Image"),
],
),
title: Text('BlurHash Example'),
),
body: TabBarView(
children: [HomePage(), BlurHashImagePage()],
),
),
),
);
}
}