Let’s take look look at the code. The below code helps to convert time to human readable time with correct format. It helps to convert time from Firebase to human readable time format. It can auto detect if we need to show the time in seconds, minutes or hours. Here you may also DateTime to…
Month: July 2023
Riverpod copyWith method
First of all , can we really use copyWith() method if we use Riverpod?. Yes, we can. Definitely we can. CopyWith() we use to create immutable objects. It means these objects are not editable. Actually copyWith() is independent of any state management package. It’s exactly the same way if you use it with BLoC. Typically…
Flutter AccentColor Deprecated
You may get the below error if you upgraded Flutter. The getter accentColor is not defined for ThemeData. To overcome this problem change accent color to anything you like Color myColor = Theme.of(context).colorScheme.secondary;
flutter_localizations from sdk which depends on intl 0.18.0, intl 0.18.0 is required
This warning get it more like below flutter_localizations from sdk which depends on intl 0.18.0, intl 0.18.0 is required or depends on intl ^0.17.0, version solving failed or Because flutter_cupertino_localizations >=1.0.1 doesn’t support null safety and no versions of flutter_cupertino_localizations match >=1.0.1-nullsafety.0 <1.0.1, flutter_cupertino_localizations >=1.0.1-nullsafety.0 is forbidden. So, because chatty depends on flutter_cupertino_localizations ^1.0.1-nullsafety.0, version…
What is call() function in Dart?
It’s very innate in Dart’s core how the call() function works. It’s very interesting. You may create a class and this class may have a function name call(). If there’s a function name call(), then you may call it from the object. Yes by using object or instance of this class. If you create an…