removed: imagenetwork, cachedimages

This commit is contained in:
2022-05-29 14:41:50 +02:00
parent 71a5668d90
commit e13c75f36c
4 changed files with 2 additions and 269 deletions

View File

@ -1,10 +1,5 @@
import 'package:cached_network_image/cached_network_image.dart';
import 'package:flutter/material.dart';
import 'package:f0ckapp/api/fetchdata.dart';
import 'package:image_network/image_network.dart';
import 'package:f0ckapp/model/item.dart';
class Home extends StatefulWidget {
@ -56,25 +51,8 @@ class _HomeState extends State<Home> {
}
return Stack(
children: <Widget>[
ImageNetwork(
image: "https://f0ck.dev/t/${snapshot.data?[index].id}.webp",
imageCache: CachedNetworkImageProvider("https://f0ck.dev/t/${snapshot.data?[index].id}.webp"),
height: 128,
width: 128,
duration: 1500,
curve: Curves.easeIn,
onPointer: true,
fitAndroidIos: BoxFit.cover,
borderRadius: BorderRadius.circular(2),
onError: const Icon(
Icons.error,
color: Colors.red,
),
onTap: () {
debugPrint(snapshot.data?[index].mime);
},
),
Expanded(
Image.network("https://f0ck.dev/t/${snapshot.data?[index].id}.webp"),
SizedBox(
child: Align(
alignment: FractionalOffset.bottomRight,
child: Padding(