Answers for "how to read file from local path in flutter"

1

get file name from path dart

void main() {
  var completePath = "/dev/dart/work/hello/app.dart";
  var fileName = (completePath.split('/').last);
  var filePath = completePath.replaceAll("/$fileName", '');
  print(fileName);
  print(filePath);
}
Posted by: Guest on September-12-2020
1

how to display an image in flutter using its filepath

Image.file(File(path))
Posted by: Guest on June-09-2020

Code answers related to "how to read file from local path in flutter"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language