|
|
|
@ -13,17 +13,27 @@ class FullScreenImageViewer extends StatelessWidget {
|
|
|
|
return Scaffold(
|
|
|
|
return Scaffold(
|
|
|
|
appBar: AppBar(
|
|
|
|
appBar: AppBar(
|
|
|
|
backgroundColor: Colors.black,
|
|
|
|
backgroundColor: Colors.black,
|
|
|
|
|
|
|
|
elevation: 0,
|
|
|
|
leading: IconButton(
|
|
|
|
leading: IconButton(
|
|
|
|
icon: Icon(Icons.close, color: AppColors.whiteColor),
|
|
|
|
icon: Icon(Icons.close, color: AppColors.whiteColor),
|
|
|
|
onPressed: () => Navigator.of(context).pop(),
|
|
|
|
onPressed: () => Navigator.of(context).pop(),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
backgroundColor: Colors.black,
|
|
|
|
backgroundColor: Colors.black,
|
|
|
|
body: Center(
|
|
|
|
body: SizedBox.expand(
|
|
|
|
child: InteractiveViewer(
|
|
|
|
child: InteractiveViewer(
|
|
|
|
child: isSvg
|
|
|
|
minScale: 0.5,
|
|
|
|
? Utils.buildSvgWithAssets(icon: path, width: double.infinity, fit: BoxFit.contain, applyThemeColor: false)
|
|
|
|
maxScale: 6.0,
|
|
|
|
: Utils.buildImgWithAssets(icon: path, width: double.infinity, fit: BoxFit.contain),
|
|
|
|
boundaryMargin: const EdgeInsets.all(20),
|
|
|
|
|
|
|
|
child: Center(
|
|
|
|
|
|
|
|
child: isSvg
|
|
|
|
|
|
|
|
? Utils.buildSvgWithAssets(icon: path, fit: BoxFit.contain, applyThemeColor: false)
|
|
|
|
|
|
|
|
: Image.asset(
|
|
|
|
|
|
|
|
path,
|
|
|
|
|
|
|
|
fit: BoxFit.contain,
|
|
|
|
|
|
|
|
errorBuilder: (context, error, stackTrace) => Utils.buildImgWithAssets(icon: path, fit: BoxFit.contain),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
);
|
|
|
|
);
|
|
|
|
|