Tomas Repcik
@tomasrepcik
Followers
35
Following
74
Media
19
Statuses
155
Biomedical Engineer turned into a Software Developer. Android/iOS/Flutter dev | Python hobbyist | Invested in software in general.
Slovakia
Joined March 2025
HI! I am Tomas. ๐ Mobile engineer in MedTech and data science enthusiast. Sharing insights on Flutter, Android, Python, and any helpful tips for tech and life. Follow for more ๐
0
0
3
These two saved me countless hours of debugging when I forgot to add a simple `await` to a method. At some point, if you want to do something with the result, you have to await it. Missing it can lead to uncaught errors or race conditions.
1
0
3
If you've got a Gradle process randomly stuck in the background as I did today, save yourself the headache. Here's the fix:
2
4
26
If you have some implementations and generated files that you do not want to include in test coverage. You can add them in settings under `dart.coverageExcludePatterns`. Available in v3.118 VSCode Dart extension.
1
0
13
In the Flutter VSCode extension v3.118, you can see widget previews directly in the IDE. This feature is still experimental, so you must enable it manually and switch to the master channel of Flutter. Hopefully, it will soon be polished and become part of the stable version!
2
5
40
If you use a monorepo, you can run Dart linters and AI agents across multiple packages and apps Useful use cases: - documentation - unified coding style - refactoring with the help of AI - adding new linter rules with a fix available - searching for pitfalls/explanations in code
1
0
3
A couple of ways you can automate a monorepo with multiple packages/projects with Melos: - running build runner - testing unit tests/integration tests - generating API endpoints - creating licensing files for export
0
1
10
Melos is a package that simplifies handling and automating monorepo Flutter projects. You can define custom scripts and execute them across multiple apps and packages easily, avoiding repetition. It streamlines running scripts on the entire codebase from CI/CD, too. Link in ๐งต
1
3
11
A Flutter monorepo simplifies developing apps/packages on a shared foundation Code/dependency changes propagate across the codebase in the analyzer. It forces you to maintain apps while you are making breaking changes. With a pubspec workspace, you can do the following:
0
1
19
Navigating directories can reduce friction when solving problems. I still recall discovering the `cd -` command, which allows you to toggle back to the previous directory in the terminal. Tools like zoxide are better, but for simple tasks, it remains relevant.
0
0
1
I created an issue on GitHub comparing the solution to the Android Previews, which you can stack together. It simplifies the creation of previews afterwards, as you can use your annotations and generate multiple previews instantly. https://t.co/EhzubfbIwR
github.com
Use case At the moment, writing previews can get tedious even if you have prepared themes, wrappers, sizes and etc. For example, If I want to create a preview in dark theme and light theme, I have ...
0
0
0
Here's an example of customizations for the experimental preview in Flutter, featuring multiple properties, including wrappers, themes, locales, and more. It covers the basics, but hopefully, in the final version, there will be a way to reuse annotations for multiple widgets.
2
3
23
If you build a large app or work at a company, you likely end up splitting parts into packages and using custom tags for them. In Dart 3.9/Flutter 3.35.0 and higher, you can now parse the tag and deviate versioning from it, similar to other packages.
3
1
22
With Dart 3.9 / Flutter 3.35.0 and higher, you can apply a switch on the type linter rule. Avoid using runtime types if pattern matching is available. If classes change their hierarchies, it can lead to weird bugs.
0
2
46
In Flutter 3.35.0 and higher, you can experiment with widget previews in the browser You can provide themes, light/dark mode, widget wrappers, localizations, and interact with widgets individually Still, it is an experimental feature, so breaking changes are to be expected
2
5
52
local_auth_darwin now supports more granular handling of unhappy paths at version 1.6.0 You can now handle disabled biometry, user fallback, and authentication cancellation by extending error codes. The codes are not defined at local_auth in the meantime.
0
0
3
I see many people recreating the HTTP client whenever it is needed. Each new client can open new network connections, which is slow, resource-intensive, and will slow down other requests. Create one client and use it everywhere.
0
0
0
AbortTrigger can be any future. For example, if the user finishes some task before all the loading finishes, you can bind the calls to one Completer or another Future. If it finishes, all the calls will halt.
0
0
0
The http package has finally started to support request cancellation, from version 1.5.0 You can accompany your request with a Future or Completer. Whenever you no longer need a response, simply finish it. Finishing throws an exception, so take care of it appropriately.
1
1
24
My favorite pattern for clean, accessible logging. Define this mixin once, and get a consistent logger instance in any class. No more manual instantiation.
0
1
1