Sponsored links
Dart and Flutter

Dart Convert String to int with default value on failure

There are some cases in which a string needs to be converted to int/double. How can we do it in Dart?We can use these 3 ...
Other techs

Bash fails in Gradle task on Azure pipeline with windows-2022

Azure pipeline, CI, continuous integration
Tips

Which info should be written to a log file

No application is perfect. All applications have bugs, unexpected and strange behaviors. They might be a small thing but...
JavaScript/TypeScript

Chai Compare object array

I needed to write tests for object array but I spent time on how to write it. I write down how to do it to save my time ...
JavaScript/TypeScript

NPM How to pin dependency version of a dependency

If you are looking for a solution to pin a dependency of a dependency, you can use npm-force-resolutions.Let's see the u...
Other techs

How to debug no console app with nssm

I needed to debug an application that is run as a windows service registered by nssm. The behavior that I wanted to inve...
Dart and Flutter

Flutter Date and Time picker without additional dependencies

There are many packages in pub.dev for date time picker but Flutter offers beautiful date and time pickers. We actually ...
Dart and Flutter

Flutter Convert TimeOfDay to 24 hours format

Are you looking for a way to show time in 24 hours format e.g. 13:35? Let's define an extension for TimeOfDay. You can use it everywhere once you define it.
Dart and Flutter

Flutter Apply text style to a target tree

If text style needs to be applied to a Text widget, it's easy to apply but if there are many widgets we don't want to ad...
Dart and Flutter

Dart Random number in a range

Dart language offers Random class to generate a random result of boolean, int, and double value. The usage is very simpl...
Sponsored links