Open in app

Sign In

Write

Sign In

Suragch
Suragch

3.8K 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. …

Flutter

4 min read

Flutter and Dart development articles
Flutter and Dart development articles
Flutter

4 min read


4 days ago

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


Jan 6, 2022

Relative vs package imports in Flutter and Dart

Why is my IDE complaining at me? Perhaps you’ve seen one of these warnings in your IDE: Prefer relative imports for files in lib/. DO avoid relative imports for files in lib/. Messages like these come from Dart’s linting rules, which are warnings generated by dart analyze and communicated to…

Flutter

5 min read

Relative vs package imports in Flutter and Dart
Relative vs package imports in Flutter and Dart
Flutter

5 min read


Aug 26, 2021

Cloning lists, maps, and sets in Dart

Understanding the difference between deep and shallow copying When you create a collection in Dart, the contents of the collection are mutable. You can see that in the following example: final myList = ['sheep', 'cow']; myList.add('horse'); // [sheep, cow, horse] myList.remove('cow'); // [sheep, horse] myList[0] = 'goat'; // [goat, horse] …

Dart

6 min read

Cloning lists, maps, and sets in Dart
Cloning lists, maps, and sets in Dart
Dart

6 min read

Suragch

Suragch

3.8K Followers

Flutter and Dart developer. Twitter: @suragch1

Following
  • Greg Perry

    Greg Perry

  • Michael Thomsen

    Michael Thomsen

  • Asaye Dilbo

    Asaye Dilbo

  • creativecreatorormaybenot

    creativecreatorormaybenot

  • Alfonso García Santiago

    Alfonso García Santiago

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech