Open in app

Sign In

Write

Sign In

Suragch
Suragch

6K Followers

Home

About

Pinned

Flutter and Dart development articles

Organizing my articles for Flutter and Dart All of my Medium articles below are friend links, so anyone can read them without a Medium subscription. If you are ever blocked from reading one of my articles, just come here to get the friend link. New articles Web and desktop support for file…

Flutter

4 min read

Flutter and Dart development articles
Flutter and Dart development articles
Flutter

4 min read


Jul 19

Web and desktop support for file upload and download in Flutter

Managing conditional imports and CORS issues Here’s what I want to do: The user chooses a file and uploads it to a server. The user downloads a file and chooses where to save it. Both of these tasks should support web and desktop. The problem is, on desktop (and mobile)…

Flutter

10 min read

Web and desktop support for file upload and download in Flutter
Web and desktop support for file upload and download in Flutter
Flutter

10 min read


Published in

Flutter Community

·Jul 12

How the GetIt service locator package works in Dart

Unveiling the magic The GetIt package provides a convenient way to access app services and state management classes from anywhere within your app. This functionality is known as a service locator, which is often compared to dependency injection, another common way to decouple dependencies in your app. The idea of…

Flutter

9 min read

How the GetIt service locator package works in Dart
How the GetIt service locator package works in Dart
Flutter

9 min read


Mar 20

Getting Started with the Flutter Realm SDK for MongoDB

This tutorial covers local storage only, no Atlas device sync Normally I use SQLite for storing large amounts of data locally, and the sqflite package has served me well for that. However, I’m now working on a project that will require syncing data across devices, and I have no idea…

Programming

8 min read

Getting Started with the Flutter Realm SDK for MongoDB
Getting Started with the Flutter Realm SDK for MongoDB
Programming

8 min read


Feb 24

Thoughts on using third-party packages (or not)

The pros and the cons In this article I’ll be referring to Flutter and Dart packages, but the principles apply across languages and frameworks. There’s a package for that When you’re just getting started building a new application in a new language and framework, everything is fresh and exciting — but it’s also difficult. How…

Programming

15 min read

Thoughts on using third-party packages (or not)
Thoughts on using third-party packages (or not)
Programming

15 min read


Feb 2

Flutter styled text with TextSpan

Quick reference and tutorial Written for Flutter 3.7. Every time I need to style text in Flutter, it always feels like reinventing the wheel. I’ve written about styled text before, but this will be a quick-reference article just related to using text spans. Text vs RichText vs Text.rich If your entire text uses the same…

Flutter

6 min read

Flutter styled text with TextSpan
Flutter styled text with TextSpan
Flutter

6 min read


Jan 25

How to show an error message in the UI in Flutter

A minimal example for a dialog or snackbar message My friend asked me today how to show an error message in the UI when making an HTTP request. …

Flutter

4 min read

How to show an error message in the UI in Flutter
How to show an error message in the UI in Flutter
Flutter

4 min read


Jan 18

Adding code snippets in VS Code

A short tutorial to make writing code a little faster I’m in the habit of scattering print statements around my code. This saves from having to step through a debugger to see what the code is doing. In the Dart language, it looks like this: print('message'); Everything but the message…

Programming

4 min read

Adding code snippets in VS Code
Adding code snippets in VS Code
Programming

4 min read


Dec 17, 2022

Programming for the good of others

I always think it’s good to reflect on the meaning of life. Life is short, and it’s so easy to get caught up in making money and building your personal brand. What’s your motivation for programming? At the end of your life, what will it all mean? …

Programming

5 min read

Programming for the good of others
Programming for the good of others
Programming

5 min read


Mar 26, 2022

Programming was my god

I originally meant to quietly post this as my Stack Overflow profile, but profiles there are only allowed 3000 characters, so here we are on Medium. Normally I don’t publicly write about sensitive topics that I know are controversial because I dislike controversy and I didn’t want any negative consequences…

Programming

4 min read

Programming was my god
Programming was my god
Programming

4 min read

Suragch

Suragch

6K Followers

Flutter and Dart developer. Twitter: @suragch1

Following
  • Tim Sneath

    Tim Sneath

  • Michael Thomsen

    Michael Thomsen

  • Greg Perry

    Greg Perry

  • Asaye Dilbo

    Asaye Dilbo

  • Alfonso García Santiago

    Alfonso García Santiago

See all (17)

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech

Teams