💄 Optimized image browsing
This commit is contained in:
parent
41f456893f
commit
e74aba2d8b
@ -51,15 +51,15 @@ class FeedItem extends StatelessWidget {
|
|||||||
child: FlutterCarousel(
|
child: FlutterCarousel(
|
||||||
options: CarouselOptions(
|
options: CarouselOptions(
|
||||||
height: 240.0,
|
height: 240.0,
|
||||||
|
viewportFraction: 1.0,
|
||||||
showIndicator: true,
|
showIndicator: true,
|
||||||
slideIndicator: const CircularSlideIndicator(),
|
slideIndicator: const CircularSlideIndicator(),
|
||||||
),
|
),
|
||||||
items: item.attachments?.map((x) {
|
items: item.attachments?.map((x) {
|
||||||
return Builder(
|
return Builder(
|
||||||
builder: (BuildContext context) {
|
builder: (BuildContext context) {
|
||||||
return Container(
|
return SizedBox(
|
||||||
width: MediaQuery.of(context).size.width,
|
width: MediaQuery.of(context).size.width,
|
||||||
margin: const EdgeInsets.symmetric(horizontal: 5.0),
|
|
||||||
child: InkWell(
|
child: InkWell(
|
||||||
child: Image.network(
|
child: Image.network(
|
||||||
getFileUrl(x.fileId),
|
getFileUrl(x.fileId),
|
||||||
|
@ -12,6 +12,7 @@ class ImageLightbox extends StatelessWidget {
|
|||||||
child: Center(
|
child: Center(
|
||||||
child: SizedBox(
|
child: SizedBox(
|
||||||
height: MediaQuery.of(context).size.height,
|
height: MediaQuery.of(context).size.height,
|
||||||
|
width: MediaQuery.of(context).size.width,
|
||||||
child: InteractiveViewer(
|
child: InteractiveViewer(
|
||||||
boundaryMargin: const EdgeInsets.all(128),
|
boundaryMargin: const EdgeInsets.all(128),
|
||||||
minScale: 0.1,
|
minScale: 0.1,
|
||||||
|
Reference in New Issue
Block a user