This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter_app/widgets/cloudinary.dart'; | |
import 'package:flutter_app/widgets/images_picker.dart'; | |
import 'package:flutter/material.dart'; | |
import 'package:provider/provider.dart'; | |
class MyHomePage extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
final _files = Provider.of<FetchImage>(context); | |
final _response = Provider.of<CloudImage>(context); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cloudinary_client: ^0.0.9 | |
multi_image_picker: ^4.7.10 | |
provider: ^4.3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter_app/widgets/images_picker.dart'; | |
import 'package:flutter_app/widgets/cloudinary.dart'; | |
import 'package:flutter/material.dart'; | |
import 'package:provider/provider.dart'; | |
import 'package:flutter_app/widgets/upload_images.dart'; | |
void main() { | |
runApp( | |
MultiProvider( | |
providers: [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter_app/widgets/cloudinary.dart'; | |
import 'package:flutter_app/widgets/images_picker.dart'; | |
import 'package:flutter/material.dart'; | |
import 'package:provider/provider.dart'; | |
class MyHomePage extends StatefulWidget { | |
@override | |
_MyHomePageState createState() => _MyHomePageState(); | |
} | |
class _MyHomePageState extends State<MyHomePage> { | |
@override |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'dart:io'; | |
import 'package:flutter/foundation.dart'; | |
import 'package:flutter_absolute_path/flutter_absolute_path.dart'; | |
import 'package:multi_image_picker/multi_image_picker.dart'; | |
class FetchImage with ChangeNotifier { | |
List<File> _files; | |
List<String> _list; | |
List<File> get files => _files; | |
List<String> get list => _list; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:cloudinary_client/cloudinary_client.dart'; | |
import 'package:cloudinary_client/models/CloudinaryResponse.dart'; | |
import 'package:flutter/foundation.dart' ; | |
class CloudImage with ChangeNotifier{ | |
dynamic _response; | |
List<String> _urlList; | |
bool _isloading = true ; | |
dynamic get urlList => _urlList; | |
String get response => _response; | |
bool get isloading => _isloading; |