Flutter Heroes
26.1K subscribers
272 photos
2 videos
31.1K links
Download Telegram
New post on /r/flutterdev subreddit:

Why are InternetAddress.lookup('') requests not shown in the Dart Devtools Network Profiler?
I was looking to a package that checks if the device is really connected to internet. I found this one: flutter_network_connectivity and it works fine.Looking into the code I saw that this package uses InternetAddress.lookup('<custom website>') to check the connectivity.So I expected it to make http requests visible to the network profiler, but this actually doesn't happen.Anybody knows the difference between InternetAddress.lookup('') and a normal GET request?

March 01, 2022 at 12:13PM by marcoredz
https://ift.tt/yRMibEn
New post on /r/flutterdev subreddit:

Kotlin vs Dart
Kotlin is way better with flutter instead of dart, it's a great language come on, if you chose either one comment why.View Poll

March 01, 2022 at 12:22PM by Maherr11
https://ift.tt/FCKGI5W
New post on /r/flutterdev subreddit:

Is it possible to stop an async function abruptly in the middle of execution ?
In my Flutter Web app ,We calling a Future returning function that have some strings processing and also API calls .My need is, I need to stop a async function abruptly in the middle of executionI tried options like CancelableOperation ,CancelableCompleter and Timer...But these classes don't cancel the future itself, rather create wrappers like things where you can use to imitate the cancellation behaviour.That is , The future is still running calling APIs and getting response and processing the response and finally returning resultBut I need to stop the async function without executing even the next line or any inner callbacks, after being cancelled .Is it possible ?

March 01, 2022 at 12:19PM by RageshAntony
https://ift.tt/d2zZxGV
New post on /r/flutterdev subreddit:

Classic non-configurable CSV parser suitable for most use cases. Pretty fast parsing.
CSV parser (fast_csv) as a result of use of the parser builder.
I don't know why, but the generated parser is about 2.9-3.5 faster than the handwritten csv parser.
Can be used with Flutter.
Allows a bit of configuration - specifying a field separator (when using the extended version of the parser).
But in this case, it will parse the data no faster than a 2.9 times compared to the parser from the csv package.
When parsing large amounts of data, you can speed up parsing by a few seconds. This may be relevant for Desktop Flutter applications.

March 01, 2022 at 02:17PM by andrew_mezoni
https://ift.tt/X1KY4L9
New post on /r/flutterdev subreddit:

Flutter installation on Linux (Manjaro) not working
I've tried to get Flutter (for Android development) running. But it's a nightmare. Do you have any tips? Is there a working Docker image or something similar where everything is setup?

March 01, 2022 at 04:45PM by BlancII
https://ift.tt/av5Z6kV
New post on /r/flutterdev subreddit:

Figma2Flutter Beta - Converts Figma design to Flutter widgets (custom painted vector paths)
https://ift.tt/CxB9Tcm

March 01, 2022 at 09:45PM by semantifier
https://ift.tt/lXnFZkr
New tweet from FlutterDev:

📢 Want to receive news, opportunities, and resources for the Black community in tech? Sign up to the mailing list → https://t.co/Kgx1YbVr30 #BlackTechTwitter https://t.co/e4VDdPcDtX— Flutter (@FlutterDev) Mar 1, 2022

March 01, 2022 at 11:00PM
https://twitter.com/FlutterDev/status/1498780165178105858
New post on /r/flutterdev subreddit:

Does flutter_riverpod support something like this out the box?
Noticed you have to create an army of final variables to reference to the ref.watch method which can grow quickly. So I wrote the following, but i'm wondering if this solution is already supported out the box (and where can I find it) and if not can this be improved any?
class ProviderCollection<T> { final Map<dynamic, dynamic> _items = {}; void add<T>(dynamic name, ProviderListenable<T> provider) { if (name is! String && name is! Enum) { throw Exception("Name must be of type String or Enum"); } _items[name] = provider; } T get<T>(dynamic name) { return _items[name]; } } 
Example:
final providerStack = ProviderStack() ..add<Counter>("counter", ChangeNotifierProvider((_) => Counter(0))) ..add<int>("counter2", StateProvider((ref) => 0)); void main() { runApp( const ProviderScope( child: App(), ), ); } class App extends StatelessWidget { const App({Key? key}) : super(key: key); @override Widget build(BuildContext context) { return const MaterialApp( title: "Example", home: HomeScreen(), ); } } class HomeScreen extends ConsumerWidget { const HomeScreen({Key? key}) : super(key: key); @override Widget build(BuildContext context, WidgetRef ref) { StateController<int> t = ref.watch(providerStack.get("counter2").state); // Counter t = ref.watch(providerStack.get("counter")); return Scaffold( appBar: AppBar( title: const Text("Hello"), ), body: Container( child: Center( child: Text('Counter ${t.state}'), // child: Text('Counter ${t.count}'), ), ), floatingActionButton: FloatingActionButton( onPressed: () { t.state++; // t.updateCount(); }, ), ); } } class Counter extends ChangeNotifier { int count; Counter(this.count); void updateCount() { count++; notifyListeners(); } } 


March 02, 2022 at 12:55AM by SaltTM
https://ift.tt/lZ6wFJK
New post on /r/flutterdev subreddit:

Pub.dev auto dark mode
I made a dark css theme for pub.dev (userstyles.org)​Changes automatically depending on the theme of the systemBut there is an option to force a dark theme​The theme itself: https://userstyles.org/styles/231195/auto-dark-pub-dev​Github: https://github.com/SergeShkurko/pub.dev-dark​On github all additional information with links to browser extensions and installation instructions (And showcase)

March 02, 2022 at 06:09AM by SergeShkurko
https://ift.tt/qCrvbLk
New post on /r/flutterdev subreddit:

Is there anyway to code with flutter android studio on a figma design, and please don't tell me that i have to use flutter ui because i don't have the time to code the design again.
Actually it's a university project where the groupe was divided into two binomes, one for design and one for coding, the binome design chose to work with figma, and it's the coding turn and it's been a while we since we were trying to code again and we have no time to do the design with flutter ui. Thank you.

March 02, 2022 at 05:54AM by infp812
https://ift.tt/kqIgOev
New post on /r/flutterdev subreddit:

Open source logging tool
Hi, I'm looking for open source logging tools for logging error on cloud, please suggest. TIA

March 02, 2022 at 05:41AM by madhukesh_048
https://ift.tt/PZW4jzq
New post on /r/flutterdev subreddit:

Have you ever felt that when you are working on a project you kinda get confused about what to do? Which one should I do first? I always get that so I built a small task manager app that lets you create 5 tasks and set a time for it. The default is (60 mins.). And vola! Work on those tasks.
https://ift.tt/Zan3qyd

March 02, 2022 at 09:27AM by devyuji
https://ift.tt/RhgILkH
New post on /r/flutterdev subreddit:

Firestore filtering and pagination
I have a realtime value list which I am paginating by passing last id of the object,​var eventDoc = _firestore.eventCollection.orderBy(FieldPath.documentId).limit(pageSize);​if (startAfterId.isNotEmpty) {eventDoc = eventDoc.startAfter([startAfterId]);}​In my bloc I have a list of subscriptions for each page,is there any good way to additionally filter this data, for example by name and then return paginated result?

March 02, 2022 at 10:38AM by eloherbapol
https://ift.tt/wL2zWoM