Author: smartcoder

React useState Previous value, Spread Operator, Complex States, Map

React App sample code that implements useState accessing previous value. Using spread operator in raeact js. Dealing with complex states, mapping state data to... Read more »

Destructuring Array and Object in Javascript

Here is the sample code which destructures an array and object. Reference code: For arrays we can give any name we want, but while... Read more »

React Js API Data Fetch Using Axios – Sample Code

API data fetching in React JS app can be easily implemented with the help of Axios package. Here is a sample react app code... Read more »

Overriding Theme Data in FLutter

Using copywith to override the theme data in flutter app developing. Sample code of flutter theme data with copywith properties. class MyApp extends StatelessWidget... Read more »

Flutter: How to Upgrade Dart SDK Version

Dart version for flutter development can be upgraded to the latest version very easily using just two terminal commands. The latest version of dart... Read more »

Most Popular Flutter Audio Player Package

Best Audio library for Flutter App development. Here is the most popular flutter audio package that helps to easily implement the audio player feature... Read more »

Simple Dart Program With User Input from Keyboard

Basic example dart program taking use input from keyboard and printing the data. Here is a sample dart code that asks the user for... Read more »

Flutter Text Animation Package Tutorial

Implementing flutter animations is made more simple and easy with the use of the Animation packages. There are many flutter animation packages available. In... Read more »

Flutter Animation: Reference Sample Code

Forward and Reverse animation on text flutter. Animation Controller, dispose, AnimationStatus, CurvedAnimation, SingleTickerProviderStateMixin. import 'package:flutter/material.dart'; import 'login_screen.dart'; import 'registration_screen.dart'; class WelcomeScreen extends StatefulWidget {... Read more »

Flutter: String Interpolation – Dynamic Values inside Strings

Using dynamic values stored inside variables, inside a string. We can utilize the string interpolation feature in flutter to insert values inside a string.... Read more »