flutter how to create folders to store files in internal storage The 2019 Stack Overflow Developer Survey Results Are In Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) The Ask Question Wizard is Live! Data science time! April 2019 and salary with experienceHow to send image through post using JSON in flutter?Flutter webivew how to set local storageList of files in flutterHow do i access specific folders in android using flutter?How to send mail with attachments in Flutter?How to get the (absolute) path to the Download folder?How to save Base64 String to file and view it using Flutterhow to download and save a file from internet to the internal storage(android) in Flutter/dart?Download file from url, save to phones storageHow can I fetch all the specific type files from storage in flutter

How do I design a circuit to convert a 100 mV and 50 Hz sine wave to a square wave?

Is there a way to generate uniformly distributed points on a sphere from a fixed amount of random real numbers per point?

US Healthcare consultation for visitors

Word for: a synonym with a positive connotation?

When did F become S? Why?

What is the role of 'For' here?

Is 'stolen' appropriate word?

Student Loan from years ago pops up and is taking my salary

Can a flute soloist sit?

Sub-subscripts in strings cause different spacings than subscripts

Does Parliament need to approve the new Brexit delay to 31 October 2019?

60's-70's movie: home appliances revolting against the owners

Why did they expect Astronaut Scott Kelley's telomere shortening to accelerate? (they got longer!)

Separating matrix elements by lines

How to politely respond to generic emails requesting a PhD/job in my lab? Without wasting too much time

Why doesn't a hydraulic lever violate conservation of energy?

Why not take a picture of a closer black hole?

Can the Right Ascension and Argument of Perigee of a spacecraft's orbit keep varying by themselves with time?

Deal with toxic manager when you can't quit

Is it ok to offer lower paid work as a trial period before negotiating for a full-time job?

What is the padding with red substance inside of steak packaging?

Are there continuous functions who are the same in an interval but differ in at least one other point?

What was the last x86 CPU that did not have the x87 floating-point unit built in?

"... to apply for a visa" or "... and applied for a visa"?



flutter how to create folders to store files in internal storage



The 2019 Stack Overflow Developer Survey Results Are In
Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)
The Ask Question Wizard is Live!
Data science time! April 2019 and salary with experienceHow to send image through post using JSON in flutter?Flutter webivew how to set local storageList of files in flutterHow do i access specific folders in android using flutter?How to send mail with attachments in Flutter?How to get the (absolute) path to the Download folder?How to save Base64 String to file and view it using Flutterhow to download and save a file from internet to the internal storage(android) in Flutter/dart?Download file from url, save to phones storageHow can I fetch all the specific type files from storage in flutter



.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








0















I was struct in a problem that i have to download pdf or images etc from network and store them in local storage.i am trying path provider plugin with GetApplicationDocumentDirectory its successfully storing files but not showing in device folder. how to create a directory and store files such as images pdfs etc that are visible to users. how could i achieve that.



thanks for help in advance










share|improve this question






















  • Use getexternal storage method

    – Shyju Madathil
    Mar 8 at 14:57

















0















I was struct in a problem that i have to download pdf or images etc from network and store them in local storage.i am trying path provider plugin with GetApplicationDocumentDirectory its successfully storing files but not showing in device folder. how to create a directory and store files such as images pdfs etc that are visible to users. how could i achieve that.



thanks for help in advance










share|improve this question






















  • Use getexternal storage method

    – Shyju Madathil
    Mar 8 at 14:57













0












0








0


1






I was struct in a problem that i have to download pdf or images etc from network and store them in local storage.i am trying path provider plugin with GetApplicationDocumentDirectory its successfully storing files but not showing in device folder. how to create a directory and store files such as images pdfs etc that are visible to users. how could i achieve that.



thanks for help in advance










share|improve this question














I was struct in a problem that i have to download pdf or images etc from network and store them in local storage.i am trying path provider plugin with GetApplicationDocumentDirectory its successfully storing files but not showing in device folder. how to create a directory and store files such as images pdfs etc that are visible to users. how could i achieve that.



thanks for help in advance







dart flutter






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Mar 8 at 12:32









Saikumarreddy2391Saikumarreddy2391

33




33












  • Use getexternal storage method

    – Shyju Madathil
    Mar 8 at 14:57

















  • Use getexternal storage method

    – Shyju Madathil
    Mar 8 at 14:57
















Use getexternal storage method

– Shyju Madathil
Mar 8 at 14:57





Use getexternal storage method

– Shyju Madathil
Mar 8 at 14:57












1 Answer
1






active

oldest

votes


















0














You can write to the device external storage as shown in the below example code by creating the folder



Hope it helps



class PDFDownloader extends StatefulWidget 
final String extension;
final String url;
final String fileName;

PDFDownloader(this.url, this.fileName,[this.extension='pdf']);

@override
_DownloadAppState createState() => new _DownloadAppState();


class _DownloadAppState extends State<PDFDownloader>

bool downloading = false;
String _message;
var progressString = "";
Future<Directory> _externalDocumentsDirectory;

@override
void initState()
//downloadFile();
checkPer();
// _bannerAd = createBannerAd()..load();

super.initState();


void checkPer() async
await new Future.delayed(new Duration(seconds: 1));
bool checkResult = await SimplePermissions.checkPermission(
Permission.WriteExternalStorage);
if (!checkResult)
var status = await SimplePermissions.requestPermission(
Permission.WriteExternalStorage);
//print("permission request result is " + resReq.toString());
if (status == PermissionStatus.authorized)
await downloadFile();

else
await downloadFile();



@override
Widget build(BuildContext context)
var scaffold= Scaffold(
appBar: AppBar(
title: Text("Download"),
),
body: Center(
child: downloading
? Container(
height: 120.0,
width: 200.0,
child: Card(
color: Colors.black,
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
CircularProgressIndicator(),
SizedBox(
height: 20.0,
),
Text(
"Downloading File: $progressString",
style: TextStyle(
color: Colors.white,
),
)
],
),
),
)
: Column(
crossAxisAlignment: CrossAxisAlignment.center,
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
Text(_message ?? 'Please wait!!'),
SizedBox(
height: 10.0,
),
new RaisedButton(
textColor: Colors.white,
color: Colors.blueAccent,
shape: new RoundedRectangleBorder(
borderRadius: new BorderRadius.circular(10.0)),
onPressed: ()
Navigator.pop(context);
,
child: Text('Close'),
)
],
),
),
);
return WillPopScope(
onWillPop: _onWillPop,
child: scaffold,
);


Future<bool> _onWillPop()
return new Future.value(!downloading);


Future<void> downloadFile() async
var dio = new Dio();
var dir = await getExternalStorageDirectory();
var knockDir =
await new Directory('$dir.path/iLearn').create(recursive: true);
print(widget.url);
await dio.download(widget.url, '$knockDir.path/$widget.fileName.$widget.extension',
onProgress: (rec, total)
//print("Rec: $rec , Total: $total");

if (mounted)
setState(()
downloading = true;
progressString = ((rec / total) * 100).toStringAsFixed(0) + "%";
);

);
if (mounted)
setState(()
downloading = false;
progressString = "Completed";
_message = "File is downloaded to your SD card 'iLearn' folder!";
);

print("Download completed");







share|improve this answer























  • Os this works both in android and ios

    – Saikumarreddy2391
    Mar 9 at 4:20











  • Getexternalstorage in sense getting path of device internal storage right

    – Saikumarreddy2391
    Mar 9 at 9:26











  • @Saikumarreddy2391 I have tried in Android only with external storage..You may please update and try

    – Shyju Madathil
    Mar 9 at 15:35











  • What if i try to create a directory that already there in path and there some files in it. does all files in that directory will lost or there wont be any change

    – Saikumarreddy2391
    Mar 10 at 2:31












  • what if user press clear cache of the application does all the data is lost

    – Saikumarreddy2391
    Mar 13 at 11:58












Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55063333%2fflutter-how-to-create-folders-to-store-files-in-internal-storage%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














You can write to the device external storage as shown in the below example code by creating the folder



Hope it helps



class PDFDownloader extends StatefulWidget 
final String extension;
final String url;
final String fileName;

PDFDownloader(this.url, this.fileName,[this.extension='pdf']);

@override
_DownloadAppState createState() => new _DownloadAppState();


class _DownloadAppState extends State<PDFDownloader>

bool downloading = false;
String _message;
var progressString = "";
Future<Directory> _externalDocumentsDirectory;

@override
void initState()
//downloadFile();
checkPer();
// _bannerAd = createBannerAd()..load();

super.initState();


void checkPer() async
await new Future.delayed(new Duration(seconds: 1));
bool checkResult = await SimplePermissions.checkPermission(
Permission.WriteExternalStorage);
if (!checkResult)
var status = await SimplePermissions.requestPermission(
Permission.WriteExternalStorage);
//print("permission request result is " + resReq.toString());
if (status == PermissionStatus.authorized)
await downloadFile();

else
await downloadFile();



@override
Widget build(BuildContext context)
var scaffold= Scaffold(
appBar: AppBar(
title: Text("Download"),
),
body: Center(
child: downloading
? Container(
height: 120.0,
width: 200.0,
child: Card(
color: Colors.black,
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
CircularProgressIndicator(),
SizedBox(
height: 20.0,
),
Text(
"Downloading File: $progressString",
style: TextStyle(
color: Colors.white,
),
)
],
),
),
)
: Column(
crossAxisAlignment: CrossAxisAlignment.center,
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
Text(_message ?? 'Please wait!!'),
SizedBox(
height: 10.0,
),
new RaisedButton(
textColor: Colors.white,
color: Colors.blueAccent,
shape: new RoundedRectangleBorder(
borderRadius: new BorderRadius.circular(10.0)),
onPressed: ()
Navigator.pop(context);
,
child: Text('Close'),
)
],
),
),
);
return WillPopScope(
onWillPop: _onWillPop,
child: scaffold,
);


Future<bool> _onWillPop()
return new Future.value(!downloading);


Future<void> downloadFile() async
var dio = new Dio();
var dir = await getExternalStorageDirectory();
var knockDir =
await new Directory('$dir.path/iLearn').create(recursive: true);
print(widget.url);
await dio.download(widget.url, '$knockDir.path/$widget.fileName.$widget.extension',
onProgress: (rec, total)
//print("Rec: $rec , Total: $total");

if (mounted)
setState(()
downloading = true;
progressString = ((rec / total) * 100).toStringAsFixed(0) + "%";
);

);
if (mounted)
setState(()
downloading = false;
progressString = "Completed";
_message = "File is downloaded to your SD card 'iLearn' folder!";
);

print("Download completed");







share|improve this answer























  • Os this works both in android and ios

    – Saikumarreddy2391
    Mar 9 at 4:20











  • Getexternalstorage in sense getting path of device internal storage right

    – Saikumarreddy2391
    Mar 9 at 9:26











  • @Saikumarreddy2391 I have tried in Android only with external storage..You may please update and try

    – Shyju Madathil
    Mar 9 at 15:35











  • What if i try to create a directory that already there in path and there some files in it. does all files in that directory will lost or there wont be any change

    – Saikumarreddy2391
    Mar 10 at 2:31












  • what if user press clear cache of the application does all the data is lost

    – Saikumarreddy2391
    Mar 13 at 11:58
















0














You can write to the device external storage as shown in the below example code by creating the folder



Hope it helps



class PDFDownloader extends StatefulWidget 
final String extension;
final String url;
final String fileName;

PDFDownloader(this.url, this.fileName,[this.extension='pdf']);

@override
_DownloadAppState createState() => new _DownloadAppState();


class _DownloadAppState extends State<PDFDownloader>

bool downloading = false;
String _message;
var progressString = "";
Future<Directory> _externalDocumentsDirectory;

@override
void initState()
//downloadFile();
checkPer();
// _bannerAd = createBannerAd()..load();

super.initState();


void checkPer() async
await new Future.delayed(new Duration(seconds: 1));
bool checkResult = await SimplePermissions.checkPermission(
Permission.WriteExternalStorage);
if (!checkResult)
var status = await SimplePermissions.requestPermission(
Permission.WriteExternalStorage);
//print("permission request result is " + resReq.toString());
if (status == PermissionStatus.authorized)
await downloadFile();

else
await downloadFile();



@override
Widget build(BuildContext context)
var scaffold= Scaffold(
appBar: AppBar(
title: Text("Download"),
),
body: Center(
child: downloading
? Container(
height: 120.0,
width: 200.0,
child: Card(
color: Colors.black,
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
CircularProgressIndicator(),
SizedBox(
height: 20.0,
),
Text(
"Downloading File: $progressString",
style: TextStyle(
color: Colors.white,
),
)
],
),
),
)
: Column(
crossAxisAlignment: CrossAxisAlignment.center,
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
Text(_message ?? 'Please wait!!'),
SizedBox(
height: 10.0,
),
new RaisedButton(
textColor: Colors.white,
color: Colors.blueAccent,
shape: new RoundedRectangleBorder(
borderRadius: new BorderRadius.circular(10.0)),
onPressed: ()
Navigator.pop(context);
,
child: Text('Close'),
)
],
),
),
);
return WillPopScope(
onWillPop: _onWillPop,
child: scaffold,
);


Future<bool> _onWillPop()
return new Future.value(!downloading);


Future<void> downloadFile() async
var dio = new Dio();
var dir = await getExternalStorageDirectory();
var knockDir =
await new Directory('$dir.path/iLearn').create(recursive: true);
print(widget.url);
await dio.download(widget.url, '$knockDir.path/$widget.fileName.$widget.extension',
onProgress: (rec, total)
//print("Rec: $rec , Total: $total");

if (mounted)
setState(()
downloading = true;
progressString = ((rec / total) * 100).toStringAsFixed(0) + "%";
);

);
if (mounted)
setState(()
downloading = false;
progressString = "Completed";
_message = "File is downloaded to your SD card 'iLearn' folder!";
);

print("Download completed");







share|improve this answer























  • Os this works both in android and ios

    – Saikumarreddy2391
    Mar 9 at 4:20











  • Getexternalstorage in sense getting path of device internal storage right

    – Saikumarreddy2391
    Mar 9 at 9:26











  • @Saikumarreddy2391 I have tried in Android only with external storage..You may please update and try

    – Shyju Madathil
    Mar 9 at 15:35











  • What if i try to create a directory that already there in path and there some files in it. does all files in that directory will lost or there wont be any change

    – Saikumarreddy2391
    Mar 10 at 2:31












  • what if user press clear cache of the application does all the data is lost

    – Saikumarreddy2391
    Mar 13 at 11:58














0












0








0







You can write to the device external storage as shown in the below example code by creating the folder



Hope it helps



class PDFDownloader extends StatefulWidget 
final String extension;
final String url;
final String fileName;

PDFDownloader(this.url, this.fileName,[this.extension='pdf']);

@override
_DownloadAppState createState() => new _DownloadAppState();


class _DownloadAppState extends State<PDFDownloader>

bool downloading = false;
String _message;
var progressString = "";
Future<Directory> _externalDocumentsDirectory;

@override
void initState()
//downloadFile();
checkPer();
// _bannerAd = createBannerAd()..load();

super.initState();


void checkPer() async
await new Future.delayed(new Duration(seconds: 1));
bool checkResult = await SimplePermissions.checkPermission(
Permission.WriteExternalStorage);
if (!checkResult)
var status = await SimplePermissions.requestPermission(
Permission.WriteExternalStorage);
//print("permission request result is " + resReq.toString());
if (status == PermissionStatus.authorized)
await downloadFile();

else
await downloadFile();



@override
Widget build(BuildContext context)
var scaffold= Scaffold(
appBar: AppBar(
title: Text("Download"),
),
body: Center(
child: downloading
? Container(
height: 120.0,
width: 200.0,
child: Card(
color: Colors.black,
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
CircularProgressIndicator(),
SizedBox(
height: 20.0,
),
Text(
"Downloading File: $progressString",
style: TextStyle(
color: Colors.white,
),
)
],
),
),
)
: Column(
crossAxisAlignment: CrossAxisAlignment.center,
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
Text(_message ?? 'Please wait!!'),
SizedBox(
height: 10.0,
),
new RaisedButton(
textColor: Colors.white,
color: Colors.blueAccent,
shape: new RoundedRectangleBorder(
borderRadius: new BorderRadius.circular(10.0)),
onPressed: ()
Navigator.pop(context);
,
child: Text('Close'),
)
],
),
),
);
return WillPopScope(
onWillPop: _onWillPop,
child: scaffold,
);


Future<bool> _onWillPop()
return new Future.value(!downloading);


Future<void> downloadFile() async
var dio = new Dio();
var dir = await getExternalStorageDirectory();
var knockDir =
await new Directory('$dir.path/iLearn').create(recursive: true);
print(widget.url);
await dio.download(widget.url, '$knockDir.path/$widget.fileName.$widget.extension',
onProgress: (rec, total)
//print("Rec: $rec , Total: $total");

if (mounted)
setState(()
downloading = true;
progressString = ((rec / total) * 100).toStringAsFixed(0) + "%";
);

);
if (mounted)
setState(()
downloading = false;
progressString = "Completed";
_message = "File is downloaded to your SD card 'iLearn' folder!";
);

print("Download completed");







share|improve this answer













You can write to the device external storage as shown in the below example code by creating the folder



Hope it helps



class PDFDownloader extends StatefulWidget 
final String extension;
final String url;
final String fileName;

PDFDownloader(this.url, this.fileName,[this.extension='pdf']);

@override
_DownloadAppState createState() => new _DownloadAppState();


class _DownloadAppState extends State<PDFDownloader>

bool downloading = false;
String _message;
var progressString = "";
Future<Directory> _externalDocumentsDirectory;

@override
void initState()
//downloadFile();
checkPer();
// _bannerAd = createBannerAd()..load();

super.initState();


void checkPer() async
await new Future.delayed(new Duration(seconds: 1));
bool checkResult = await SimplePermissions.checkPermission(
Permission.WriteExternalStorage);
if (!checkResult)
var status = await SimplePermissions.requestPermission(
Permission.WriteExternalStorage);
//print("permission request result is " + resReq.toString());
if (status == PermissionStatus.authorized)
await downloadFile();

else
await downloadFile();



@override
Widget build(BuildContext context)
var scaffold= Scaffold(
appBar: AppBar(
title: Text("Download"),
),
body: Center(
child: downloading
? Container(
height: 120.0,
width: 200.0,
child: Card(
color: Colors.black,
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
CircularProgressIndicator(),
SizedBox(
height: 20.0,
),
Text(
"Downloading File: $progressString",
style: TextStyle(
color: Colors.white,
),
)
],
),
),
)
: Column(
crossAxisAlignment: CrossAxisAlignment.center,
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
Text(_message ?? 'Please wait!!'),
SizedBox(
height: 10.0,
),
new RaisedButton(
textColor: Colors.white,
color: Colors.blueAccent,
shape: new RoundedRectangleBorder(
borderRadius: new BorderRadius.circular(10.0)),
onPressed: ()
Navigator.pop(context);
,
child: Text('Close'),
)
],
),
),
);
return WillPopScope(
onWillPop: _onWillPop,
child: scaffold,
);


Future<bool> _onWillPop()
return new Future.value(!downloading);


Future<void> downloadFile() async
var dio = new Dio();
var dir = await getExternalStorageDirectory();
var knockDir =
await new Directory('$dir.path/iLearn').create(recursive: true);
print(widget.url);
await dio.download(widget.url, '$knockDir.path/$widget.fileName.$widget.extension',
onProgress: (rec, total)
//print("Rec: $rec , Total: $total");

if (mounted)
setState(()
downloading = true;
progressString = ((rec / total) * 100).toStringAsFixed(0) + "%";
);

);
if (mounted)
setState(()
downloading = false;
progressString = "Completed";
_message = "File is downloaded to your SD card 'iLearn' folder!";
);

print("Download completed");








share|improve this answer












share|improve this answer



share|improve this answer










answered Mar 8 at 15:07









Shyju MadathilShyju Madathil

1,4401124




1,4401124












  • Os this works both in android and ios

    – Saikumarreddy2391
    Mar 9 at 4:20











  • Getexternalstorage in sense getting path of device internal storage right

    – Saikumarreddy2391
    Mar 9 at 9:26











  • @Saikumarreddy2391 I have tried in Android only with external storage..You may please update and try

    – Shyju Madathil
    Mar 9 at 15:35











  • What if i try to create a directory that already there in path and there some files in it. does all files in that directory will lost or there wont be any change

    – Saikumarreddy2391
    Mar 10 at 2:31












  • what if user press clear cache of the application does all the data is lost

    – Saikumarreddy2391
    Mar 13 at 11:58


















  • Os this works both in android and ios

    – Saikumarreddy2391
    Mar 9 at 4:20











  • Getexternalstorage in sense getting path of device internal storage right

    – Saikumarreddy2391
    Mar 9 at 9:26











  • @Saikumarreddy2391 I have tried in Android only with external storage..You may please update and try

    – Shyju Madathil
    Mar 9 at 15:35











  • What if i try to create a directory that already there in path and there some files in it. does all files in that directory will lost or there wont be any change

    – Saikumarreddy2391
    Mar 10 at 2:31












  • what if user press clear cache of the application does all the data is lost

    – Saikumarreddy2391
    Mar 13 at 11:58

















Os this works both in android and ios

– Saikumarreddy2391
Mar 9 at 4:20





Os this works both in android and ios

– Saikumarreddy2391
Mar 9 at 4:20













Getexternalstorage in sense getting path of device internal storage right

– Saikumarreddy2391
Mar 9 at 9:26





Getexternalstorage in sense getting path of device internal storage right

– Saikumarreddy2391
Mar 9 at 9:26













@Saikumarreddy2391 I have tried in Android only with external storage..You may please update and try

– Shyju Madathil
Mar 9 at 15:35





@Saikumarreddy2391 I have tried in Android only with external storage..You may please update and try

– Shyju Madathil
Mar 9 at 15:35













What if i try to create a directory that already there in path and there some files in it. does all files in that directory will lost or there wont be any change

– Saikumarreddy2391
Mar 10 at 2:31






What if i try to create a directory that already there in path and there some files in it. does all files in that directory will lost or there wont be any change

– Saikumarreddy2391
Mar 10 at 2:31














what if user press clear cache of the application does all the data is lost

– Saikumarreddy2391
Mar 13 at 11:58






what if user press clear cache of the application does all the data is lost

– Saikumarreddy2391
Mar 13 at 11:58




















draft saved

draft discarded
















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55063333%2fflutter-how-to-create-folders-to-store-files-in-internal-storage%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Save data to MySQL database using ExtJS and PHP [closed]2019 Community Moderator ElectionHow can I prevent SQL injection in PHP?Which MySQL data type to use for storing boolean valuesPHP: Delete an element from an arrayHow do I connect to a MySQL Database in Python?Should I use the datetime or timestamp data type in MySQL?How to get a list of MySQL user accountsHow Do You Parse and Process HTML/XML in PHP?Reference — What does this symbol mean in PHP?How does PHP 'foreach' actually work?Why shouldn't I use mysql_* functions in PHP?

Compiling GNU Global with universal-ctags support Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) Data science time! April 2019 and salary with experience The Ask Question Wizard is Live!Tags for Emacs: Relationship between etags, ebrowse, cscope, GNU Global and exuberant ctagsVim and Ctags tips and trickscscope or ctags why choose one over the other?scons and ctagsctags cannot open option file “.ctags”Adding tag scopes in universal-ctagsShould I use Universal-ctags?Universal ctags on WindowsHow do I install GNU Global with universal ctags support using Homebrew?Universal ctags with emacsHow to highlight ctags generated by Universal Ctags in Vim?

Add ONERROR event to image from jsp tldHow to add an image to a JPanel?Saving image from PHP URLHTML img scalingCheck if an image is loaded (no errors) with jQueryHow to force an <img> to take up width, even if the image is not loadedHow do I populate hidden form field with a value set in Spring ControllerStyling Raw elements Generated from JSP tagds with Jquery MobileLimit resizing of images with explicitly set width and height attributeserror TLD use in a jsp fileJsp tld files cannot be resolved