Skip to content

Commit

Permalink
fixed image flexbox
Browse files Browse the repository at this point in the history
  • Loading branch information
jaswanthreddy-007 committed May 4, 2023
1 parent da093ad commit 9e81f49
Showing 1 changed file with 3 additions and 103 deletions.
106 changes: 3 additions & 103 deletions lib/pages/scan.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,109 +6,9 @@ import 'package:flutter/services.dart';
import 'package:flutter_svg/flutter_svg.dart';
import 'package:image_picker/image_picker.dart';

// class scan extends StatefulWidget {
// const scan({Key? key}) : super(key: key);
//
// @override
// State<scan> createState() => _scanState();
// }
//
// class _scanState extends State<scan> {
//
//
//
//
// File? imageFile;
//
//
// _openGallery(BuildContext context) async{
// final ImagePicker picker = ImagePicker();
// final pic = await picker.pickImage(source: ImageSource.gallery);
// setState(() {
// File imageFile =pic as File;
// });
// Navigator.of(context).pop();
//
// }
//
//
//
// _openCamera(BuildContext context) async{
// final ImagePicker picker = ImagePicker();
// final pic = await picker.pickImage(source: ImageSource.camera);
// setState(() {
// imageFile =pic as File;
// });
// Navigator.of(context).pop();
//
// }
//
// Future<void> _showChoiceDialog(BuildContext context){
// return showDialog(context: context, builder: (BuildContext){
// return AlertDialog(
// title: Text('Make a choice'),
// content: SingleChildScrollView(
// child: ListBody(
// children: [
// GestureDetector(
// child : Text('Gallary'),
// onTap: (){
// _openGallery(context);
// },
// ),
// Padding(padding: EdgeInsets.all(8.0)),
// GestureDetector(
// child : Text('Camera'),
// onTap: (){
// _openCamera(context);
// },
// )
// ],
// ),
// ),
// );
// });
// }
//
//
//
// @override
// Widget build(BuildContext context) {
//
// var assetsImage = new AssetImage('assets/illustration.jpg'); //<- Creates an object that fetches an image.
//
// var image = new Image(image: assetsImage, fit: BoxFit.cover);
//
// return Scaffold(
// appBar: AppBar(
// title: Text('Scan the Crack'),
// ),
// body: Container(
// child: Center(
// child: Column(
// mainAxisAlignment: MainAxisAlignment.center,
//
// children: [
// // Text('No image selected'),
// // SizedBox(height: 50,),
//
//
// imageFile!= null ? Image.file(imageFile!,width: 4000): image,
// TextButton(onPressed: () {
// _showChoiceDialog(context);
//
// } ,
// child: Text('Scan Image'))
// ],
// ),
// ),
// ),
// );
// }
// }


//



class scan extends StatefulWidget {
const scan({Key? key,}) : super(key: key);

Expand Down

0 comments on commit 9e81f49

Please sign in to comment.