Dart:io in Replit Android app

Hello.

I’ve tried searching for the package Dart:io so that I can import it in my Dart file I use to practice concepts on my smartphone.

I’m just starting in Dart, and I’d like to be able to use the input/output to get user input. I can’t find the package. I saw another post that mentioned looking on nixos and I did, but I didn’t see it there either.

I really appreciate any help or even an answer that it’s not possible. Thank you all.

Hi @trevorjohnsonte , welcome to the forums!
You can try this:

import 'dart:io';

Hope this helps!

1 Like

Thank you thank you thank you!

I type all necessary quotes with " double quotes. It’s easier to touch type the double than single for me on phone and keyboard.

For some reason, Replit app won’t accept

import "dart:io";

But it works with single quotes!

I appreciate it so much!

1 Like

Hi @trevorjohnsonte !
Since my post answered your question, could you mark it as a Solution?
Thanks!
Cc: @QwertyQwerty88

2 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.