Step 1
We cannot directly remove the time stamp from Zoom Image but using the intl.dart package we can easily filter the date stamp from time stamp. So open your flutter project’s pubspec.yaml in code .
dependencies:
flutter:
sdk: flutter
photo_view: ^0.10.2
flutter pub get
import 'package:photo_view/photo_view.dart';
import 'package:flutter/material.dart';
import 'package:photo_view/photo_view.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
debugShowCheckedModeBanner: false,
home: Scaffold(
body: ZoomImage()
)
);
}
}
class ZoomImage extends StatefulWidget {
ZoomImageState createState() => ZoomImageState();
}
class ZoomImageState extends State<ZoomImage>{
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
centerTitle: true,
leading: InkWell(
onTap: () {
// Navigator.pop(context);
},
child: Icon(Icons.close),
),
backgroundColor: Colors.pink,
title: Text('Zoom Image')),
body: Container(
child: PhotoView(
imageProvider: AssetImage("assets/images/photo.jpg"),
)
),
);
}
}