removed: imagenetwork, cachedimages
This commit is contained in:
@ -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(
|
||||
|
Reference in New Issue
Block a user