Getting a substring in DartI was trying to figure out the most efficient way to trim or shorten a String in Dart(more speficially for a Flutter project) yesterday. There's actually a couple of different ways to do it. The substring method The first and most typical one is usin...Aug 12, 2021 · 2 min readflutterramblings.hashnode.dev
Capturing a Flutter widget as an image using RepaintBoundaryThe other day I decided I wanted to add a feature in one of my projects to share a graph and I was looking for ways to convert the graph into an image. In the end the approach that I landed on was using the RepaintBoundary widget and I'm going to exp...Aug 10, 2021 · 3 min readflutterramblings.hashnode.dev
Mixing packages that don't support null safety in FlutterNull safety has been supported for a few months now in Dart and Flutter. I've migrated pretty much all of my projects to null safety without any issues but in some cases you might be waiting on a particular package that isn't supported yet. It's actu...Jul 23, 2021 · 3 min readflutterramblings.hashnode.dev
Excluding Dart files from static analysisI wrote a couple of posts about linting this year, but this one is about excluding files from static analysis. After adding static analysis to most of my Flutter projects I found that sometimes there were files that I didn't want to be warned about. ...Jul 20, 2021 · 2 min readflutterramblings.hashnode.dev
Run Flutter tests with GitHub ActionsIf you're like me you probably like setting your project up to automatically run your tests when you create a Pull Request on GitHub. I wrote another post about upgrading Flutter packages with GitHub Actions in May but I realised today that I never w...Jul 11, 2021 · 3 min readflutterramblings.hashnode.dev