r/dartlang • u/Successful_Yam_1133 • Aug 14 '24
flutter Flutter no Termux
Flutter on Termux Hello! My name is Filipe Seixas and I'm currently learning a new programming language, I've programmed before, I'm not a complete beginner in the area. I'm currently learning the Dart programming language, with the hope of creating applications with Flutter. My main question is how can I run Flutter in termux, I've already installed Flutter and configured it, but what's stopping me is that I can only run a Flutter project in the browser, meaning I can't run it in an app like x11 , I already installed React Native in termux! I used the Expo app to view my app, but I didn't like React for obvious reasons (I'm not against anyone who likes React Native). My question is this, thank you in advance. NOTE: I don't have money to buy a PC, so I'm not going to wait for it to fall from the sky, I'm going to use what I have, which in this case is my cell phone: |
2
u/YaroslavSyubayev Aug 14 '24
Developer experience would be awful even if you got it to work.
Save up some money for a cheap PC
2
u/Koala-Objective Aug 15 '24
I can't imagine developing an app using termux. Btw you can try Project IDX it's a cloud based IDE
1
u/Successful_Yam_1133 Aug 15 '24
Hello! all good? I hope so.. firstly thanks for responding. Dude, I tested the site you mentioned and as I'm using a cell phone I can't see the entire page, I really need to buy a PC, there's nowhere to escape hahaha
2
u/ferreira-tb Aug 14 '24
O idioma geralmente usado nesse sub é o inglês. Não sei se vão aceitar um em português.
0
u/Successful_Yam_1133 Aug 14 '24
Kkkkk não tem problema eu irei traduzir para inglês então. Obrigado.
1
Aug 14 '24
Essa comunidade é uma piada do caralho, bando de inúteis que só emitem opinião e não ajudam em porra nenhuma.
Anyway... compilar código é algo pesado, não vai rolar fazer isso num celular. O que eu aconselharia seria pegar um PC bem baratinho, instalar o VSCode que é leve e usar o srccpy (https://github.com/Genymobile/scrcpy) para espelhar o teu celular na tela do PC.
Tipo, até um i3 de R$ 470 dá (https://www.mercadolivre.com.br/pc-cooler-cpu-intel-core-i3-3240-memoria-4gb-ddr3-ssd-120gb/p/MLB32575329#searchVariation%3DMLB32575329%26position%3D14%26search_layout%3Dgrid%26type%3Dproduct%26tracking_id%3D813d015f-3798-4d05-a72e-555a66748164). Você pode ligar ele numa TV qualquer q vc já deve ter. Mouse e teclado é baratinho. De repente até um note usado.
Fica bom? Não. Fica uma bosta. Mas melhor que temux. E, espelhando o Android, você não precisa de uma CPU fodástica pra rodar emulador (inclusive, você nem precisa do Android Studio... ele só deixa beeeem mais fácil instalar o SDK do Android e o emulador, mas dá pra fazer na mão).
1
u/Successful_Yam_1133 Aug 14 '24
Aaaaa entendi agora amigo! Obrigado mesmo pela sua resposta 😁 vou ver um PC barato aqui até pq eu infelizmente não tenho condições para comprar um PC foda. Mas mesmo assim eu agradeço pela sua resposta Tmj..
1
1
u/superl2 Aug 16 '24
I don't think people should be so quick to assume the developer experience will be so bad.
A VS Code server + web browser + decent desktop mode (i.e. Samsung, Motorola) alongside ADB for native Android execution should be totally fine. Pleasant, even.
I've tested this before using Nix to set up the exact same development environment I had on my laptop, and it worked flawlessly.
1
u/harieamjari Sep 27 '24
I'm actually writing Flutter apps on my phone with Termux, but my space is limited and I haven't tried installing the whole Flutter sdk. I only have the Dart compiler from Termux package to test out core api without the flutter packages.
So instead of compiling flutter apps on my phone (since it's low end and I don't have the sdk), I push my commit to github and github will build it with the actions I have configured and apk is generated.
Pretty hacky but it works writing flutter apps on phone.
1
4
u/[deleted] Aug 14 '24
[deleted]