A Beginner Guide to Write Functions in Kotlin

A Beginner Guide to Write Functions in Kotlin

Kotlin has rapidly gained popularity as the go-to language for native Android app development. But its utility goes beyond that. In this enhanced Kotlin tutorial, we’ll dive deep into creating and using functions. We’ll cover basic functions, functions with returns, single and multiple parameters, and default arguments. Basic Function Syntax in Kotlin Kotlin makes declaring…

How to Capitalize TextField Content in Flutter

TextField is a very important widget that helps users to input text. Sometimes you may want the case of the TextField text specific. In this Flutter tutorial, let’s check how to capitalize the content of TextField. It’s quite simple. You can use TextCapitalization class to capitalize input text. With the help of textCapitalization property of…

How to Show Images According to a Preferred Aspect Ratio in React Native

Sometimes you may want to show images according to a given aspect ratio instead of a fixed height. Let’s check how to show images with a predefined aspect ratio in react native. In this react native example, I will show you images in a 2/3 aspect ratio. The 2/3 aspect ratio is generally used to…

How to Fix Android Gradle plugin requires Java 11 to run React Native Error

I was trying to run a new react native project using my Android emulator and I faced an unexpected react native issue that says the Android Gradle plugin requires Java 11 to run. Following is the complete error. The issue is with the JDK. As you can see, the error message is advocating us to…

How to Fix ‘while resolving: undefined@undefined’ Error while Creating new React Native Project

Recently, I faced an unexpected react native error. I was creating a new React Native project with the command npx react-native init and I was shown an undefined@undefined error in the terminal. Following is the complete error. Following is the solution for this react native error. Go to users/YourName/ folder. Unhide the hidden folders. If…