Kotlin – Create String Array

Kotlin is a modern, expressive programming language that is gaining popularity among developers for its conciseness and versatility. One common task in programming is working with arrays, and Kotlin makes it straightforward to create and manipulate them. In this article, we’ll explore how to create a String array in Kotlin with various examples.

What is a String Array?

A String array is a data structure that can store a collection of strings. Each element in the array is a string, making it a useful tool for storing and manipulating text-based data.

Creating a String Array in Kotlin

Kotlin provides multiple ways to create a String array. Let’s explore some of the most common methods:

1. Using the arrayOf function:

The arrayOf function allows you to create an array of any type, including String. Here’s an example of creating a String array with this method:

val fruits = arrayOf("apple", "banana", "cherry", "date")

In the code above, we’ve created a fruits array that contains four strings.

2. Using the Array constructor:

You can also use the Array constructor to create a String array. Here’s an example:

val colors = Array(4) { "" }
colors[0] = "red"
colors[1] = "green"
colors[2] = "blue"
colors[3] = "yellow"

In this example, we create an array of size 4 with empty strings and then populate each element with a color name.

3. Using a combination of Array and set functions:

Another way to create a String array is by using the Array constructor and the set function to assign values to specific indices:

val cities = Array(3) { "" }
cities.set(0, "New York")
cities.set(1, "Los Angeles")
cities.set(2, "Chicago")

In this example, we create an array of size 3 with empty strings and then set values at specific indices.

Accessing and Manipulating Elements in a String Array

Once you’ve created a String array, you can access and manipulate its elements. Here are some common operations:

Accessing elements:

You can access elements in a String array using square brackets and the index of the element. For example:

val fruit = fruits[1] // Accesses the second element, "banana"

Modifying elements:

To modify an element in the array, use the assignment operator:

fruits[2] = "grape" // Changes "cherry" to "grape"

Iterating through the array:

You can use loops, such as for or forEach, to iterate through the elements of the array:

for (fruit in fruits) {
    println(fruit)
}

Conclusion

Creating and working with String arrays in Kotlin is a fundamental skill for any Kotlin developer. In this article, we’ve explored various methods for creating String arrays and performing common operations on them. As you become more proficient in Kotlin, you’ll find these skills invaluable for developing applications that involve text-based data.

Kotlin’s simplicity and expressiveness make it a great choice for both beginners and experienced developers. We hope this article has provided you with a clear understanding of how to create and manipulate String arrays in Kotlin.

If you have any questions or need further assistance, feel free to ask in the comments below. Happy coding!

Related Posts

Creating Integer Arrays in Kotlin

Create Empty Array in Kotlin

Creating Arrays in Kotlin

Check Two Strings are Equal in Kotlin

Multiline Strings in Kotlin

Comparing Strings in Kotlin

Check Two Strings are Equal in Kotlin

String comparison is a common operation in programming, and it’s no different in Kotlin. Whether you need to validate user input, compare database values, or make decisions in your application, you’ll frequently encounter the need to check if two strings are equal. In this article, we will explore how to perform string equality checks in Kotlin.

Using the == Operator

In Kotlin, you can use the == operator to check if two strings are equal. This operator is overloaded for String objects, allowing you to compare their contents easily. Here’s a simple example:

fun main() {
    val string1 = "Hello, World"
    val string2 = "Hello, World"

    if (string1 == string2) {
        println("Strings are equal")
    } else {
        println("Strings are not equal")
    }
}

In this example, we declare two String variables, string1 and string2, and then use the == operator to compare their contents. If the contents of both strings are the same, it will print “Strings are equal” to the console.

Using the equals Function

While the == operator is the preferred way to check for string equality in Kotlin, you can also use the .equals() function for string comparison. This function allows you to specify additional options, such as ignoring character case.

Here’s how you can use .equals() for string comparison:

fun main() {
    val string1 = "Hello, World"
    val string2 = "hello, world"

    if (string1.equals(string2, ignoreCase = true)) {
        println("Strings are equal (case-insensitive)")
    } else {
        println("Strings are not equal")
    }
}

In this example, we use the .equals() function with the ignoreCase parameter set to true, which means it performs a case-insensitive comparison. As a result, it will print “Strings are equal (case-insensitive)” to the console, even though the letter casing is different.

Conclusion

Checking if two strings are equal is a common task in programming, and in Kotlin, you can accomplish this using the == operator or the .equals() function. The == operator is the recommended way for simple string equality checks, while the .equals() function provides additional options, such as case-insensitive comparison. Depending on your specific use case, you can choose the method that best suits your needs.

String comparison is a fundamental concept in many programming languages, and understanding how to perform it in Kotlin will be valuable for your software development projects.

Related Posts

Multiline Strings in Kotlin

Comparing Strings in Kotlin

Mastering Kotlin String Concatenation

Print a String in Kotlin

How to Find Kotlin String Length

Define String Constants in Kotlin

Multiline Strings in Kotlin

In Kotlin, you can write the multiple line String literal and enclose it in triple quotes to define a multiline string.

Use String to trim the indentation if you would like to.In addition to triple quotes, there is a trimIndent() function. The leading whitespace from each line is eliminated using the trimIndent() function.

Creating Multiline Strings

To create a multiline string in Kotlin, you simply enclose your text within triple quotes. For example:

val myMultilineString = """
    This is a multiline string.
    It can span multiple lines without escape characters.
"""

You can use triple double-quotes (""") to include line breaks without any escape sequences. This makes it easy to represent formatted text, code samples, or any content with natural line breaks.

Formatting and Indentation

Kotlin multiline strings are also useful for preserving the formatting of your text. You can add indentation to the string, and it will be included in the final output:

val indentedString = """
    This text is indented.
        This line is further indented.
    Back to the main level.
"""

The indentation is flexible, allowing you to format the content as you see fit. This is particularly useful when writing code snippets or structuring your blog articles.

Escaping Special Characters

While you don’t need to escape most special characters within multiline strings, there are cases where you might want to include a literal triple-quoted string inside your content. In such cases, you can escape the triple quotes:

val escapedString = """
    This is a multiline string with escaped triple quotes: \"""
"""

Use Cases

Multiline strings in Kotlin have various use cases. They’re perfect for:

  • Writing Blog Articles: As demonstrated in this very article, multiline strings are an excellent choice for composing lengthy blog posts with proper formatting.
  • Defining HTML Templates for Web Development: Multiline strings make it easy to define HTML templates within your Kotlin code. This can be especially useful for web development projects.
  • Including Code Samples: If you need to include code samples within your text, multiline strings preserve the formatting, making your code snippets more readable.
  • Creating Email Templates: When working on email templates, you can use multiline strings to maintain the structure and readability of your content.
  • Storing Large Text Content Within Your Code: Whether it’s legal documents, user agreements, or any other substantial text content, multiline strings allow you to keep it within your code while preserving the formatting.

Conclusion

Multiline strings in Kotlin are a versatile tool for working with large blocks of text. They help maintain the formatting of your content and make it easy to include code snippets and other text-rich data in your code. So the next time you need to write a blog post for your website, consider using Kotlin’s multiline strings for a cleaner and more concise approach.

Happy coding!

Related Posts

Comparing Strings in Kotlin

Mastering Kotlin String Concatenation

Print a String in Kotlin

How to Find Kotlin String Length

Define String Constants in Kotlin

Creating an Empty String in Kotlin

Comparing Strings in Kotlin

Programming’s most basic operation, String comparison, lets us determine whether two strings are equal or whether one is larger or shorter than the other.

There are various methods for comparing strings in Kotlin, a cutting-edge and expressive programming language. The many approaches and recommended techniques for comparing strings in Kotlin will be covered in this article.

Using == Operator

The simplest way to compare two strings for equality in Kotlin is by using the == operator. This operator checks whether the content of two strings is the same.

val str1 = "Hello"
val str2 = "World"

if (str1 == str2) {
    println("Strings are equal")
} else {
    println("Strings are not equal")
}

In this example, “Strings are not equal” will be printed since str1 and str2 contain different content.

Using compareTo() Function

To compare strings lexicographically (based on their Unicode values), you can use the compareTo() function. This function returns an integer that indicates the relative order of the two strings.

val str1 = "apple"
val str2 = "banana"

val result = str1.compareTo(str2)

if (result < 0) {
    println("$str1 comes before $str2")
} else if (result > 0) {
    println("$str1 comes after $str2")
} else {
    println("$str1 and $str2 are equal")
}

In this case, “apple comes before banana” will be printed because the compareTo() function returns a negative value.

Ignoring Case

If you want to perform a case-insensitive comparison, you can use the equals() function with the ignoreCase parameter.

val str1 = "Kotlin"
val str2 = "kotlin"

if (str1.equals(str2, ignoreCase = true)) {
    println("Strings are equal (case-insensitive)")
} else {
    println("Strings are not equal (case-insensitive)")
}

Here, “Strings are equal (case-insensitive)” will be printed because we’ve specified ignoreCase = true.

Check Prefix and Suffix

You can also check if a string starts with or ends with a specific substring using the startsWith() and endsWith() functions.

val text = "Hello, World!"

if (text.startsWith("Hello")) {
    println("Text starts with 'Hello'")
}

if (text.endsWith("World!")) {
    println("Text ends with 'World!'")
}

Both conditions in this example will evaluate to true.

Using Regular Expressions

Kotlin provides powerful support for regular expressions, which can be used to perform advanced string comparisons and manipulations.

val text = "The quick brown fox jumps over the lazy dog"

val pattern = Regex("brown")

if (pattern.containsMatchIn(text)) {
    println("Text contains the word 'brown'")
}

In this case, “Text contains the word ‘brown’” will be printed because the regular expression pattern matches the word “brown” in the text.

Conclusion

In this post, we’ve looked at a variety of Kotlin comparison methods, from straightforward equality tests to more intricate ones like regular expressions. The best way to utilise will rely on your unique use case and requirements. You’ll be better able to handle text processing and manipulation in your Kotlin projects if you have a firm grasp of string comparison in the language.

Keep in mind that string comparisons might affect speed, particularly when working with lengthy strings or in code that depends on it. Always take the effectiveness of your comparison method into account and select it based on how well it meets your needs.

You may utilise these methods with confidence in your Kotlin apps now that you have a firm understanding of string comparison in the language.

Related Posts

Mastering Kotlin String Concatenation

Print a String in Kotlin

How to Find Kotlin String Length

Define String Constants in Kotlin

Creating an Empty String in Kotlin

Kotlin – Initialize String

Print a String in Kotlin

Developers have grown to love the modern, succinct, and expressive programming language Kotlin for its ease of use and adaptability.

You’ve come to the right place if you’re new to Kotlin and want to learn how to print a String. We’ll go over the fundamentals of printing a string in Kotlin in this tutorial.

Syntax

print(str)
//or
println(str)

To print a string in Kotlin, you can use the println() function, which stands for “print line.” Here’s how you can print a string in Kotlin:

fun main() {
    val myString = "Hello, World!"
    println(myString)
}

In this example, we define a string variable myString and assign the value “Hello, World!” to it. Then, we use the println() function to print the contents of myString to the console.

The println() Function

In Kotlin, you can print a string to the console using the println() function. This function stands for “print line” and is used to display text output. Let’s take a look at a simple example:

fun main() {
    val myString = "Hello, World!"
    println(myString)
}

In this code snippet, we do the following:

  1. Define a variable myString and assign the string “Hello, World!” to it.
  2. Use the println() function to print the contents of myString to the console.

When you run this program, you’ll see the text “Hello, World!” displayed in the console.

More Printing Options

While println() is the most common way to print strings in Kotlin, you can also use other print-related functions for different purposes:

  • print(): This function prints the text without a line break, so the next output will be on the same line.
fun main() {
    val name = "Alice"
    print("Hello, ")
    print(name)
    print("!")
}

Output:

Hello, Alice!

System.out.print(): You can also use System.out.print() for printing without a line break. It’s similar to print().

fun main() {
    val number = 42
    System.out.print("The answer is: ")
    System.out.print(number)
}

Output:

The answer is: 42

Conclusion

Printing a string in Kotlin is straightforward, thanks to the println() function. You can use it to display text output in your Kotlin programs. As you continue to explore Kotlin, you’ll discover its many other features and capabilities that make it a powerful and enjoyable programming language to work with.

Now that you’ve learned how to print a string in Kotlin, you can start building more complex applications and explore the language’s full potential. Happy coding!

Related Posts

How to Find Kotlin String Length

Define String Constants in Kotlin

Creating an Empty String in Kotlin

Kotlin – Initialize String

Kotlin String Operations with Example

Kotlin – Create Custom Exception

How to Find Kotlin String Length

Programmers use strings as a fundamental building block to alter and display text. Knowing how to work with strings is essential in Kotlin, a popular programming language for Android app development and beyond.

The measurement of a string’s length is a crucial component of String manipulation. To help you learn this crucial ability, we’ll go over how to get the length of a string in Kotlin and offer real-world examples.

The length Property

In Kotlin, obtaining the length of a string is straightforward. The String class has a built-in property called length that returns the number of characters in the string. Let’s take a look at how you can use it:

fun main() {
    val myString = "Hello, Kotlin!"
    val length = myString.length

    println("The length of the string is $length")
}

In this example, we define a string myString containing the text “Hello, Kotlin!” and use the length property to determine its length. The result will be The length of the string is 13.

Handling Multilingual Text

Kotlin is a flexible language that is not just used for writing in English. It can handle strings that contain non-Latin characters and those that are in many different languages.

Regardless of the language or script used, the length attribute determines the length based on the amount of characters. For Example:

fun main() {
    val russianString = "Привет, мир!" // Hello, world! in Russian
    val length = russianString.length

    println("The length of the string is $length")
}

In this case, the length will be “The length of the string is 12”, as there are 12 characters in the Russian string.

Handling Unicode Characters

Kotlin also handles Unicode characters seamlessly. Each Unicode character, including emojis and special symbols, is counted as a single character by the length property:

fun main() {
    val emojiString = "😀🚀🌟"
    val length = emojiString.length

    println("The length of the string is $length")
}

The length of the emojiString in this example is "The length of the string is 3", even though it contains three emoji characters.

Handling Empty Strings

When dealing with empty strings, the length property returns 0:

fun main() {
    val emptyString = ""
    val length = emptyString.length

    println("The length of the string is $length")
}

In this case, the length will be “The length of the string is 0”.

Conclusion

Understanding how to determine the length of a string is a fundamental skill in Kotlin programming. The length property of the String class provides a simple and reliable way to achieve this. Whether you’re working with text in different languages, containing Unicode characters, or handling empty strings, Kotlin’s length property makes it easy to count characters accurately.

Mastering this skill will help you manipulate and format text effectively in your Kotlin applications, whether you’re developing Android apps, web applications, or any other software that involves text processing.

So, go ahead and use the length property to conquer string length challenges in your Kotlin projects!

Related Posts

Define String Constants in Kotlin

Creating an Empty String in Kotlin

Kotlin – Initialize String

Kotlin String Operations with Example

Kotlin – Create Custom Exception

Kotlin Throw Exceptions Handling

Creating an Empty String in Kotlin

In Kotlin, making an empty String is a simple process. You can use the String constructor without any arguments or just allocate an empty set of double quotes (“”) to a variable.

Here’s an Example

// Using an empty string literal
val emptyString1: String = ""

// Using the String constructor
val emptyString2 = String()

The syntax to create an empty String using double quotes is

normalStr = ""

Working with empty strings is something you’ll have to do quite a bit while using Kotlin. Knowing how to make an empty string in Kotlin is crucial whether you’re initialising a variable or erasing the contents of an existing string.

A literal empty string can be used to produce an empty string in Kotlin, or the String constructor can be called without any arguments.

Using an Empty String Literal

The simplest way to create an empty string in Kotlin is by assigning an empty set of double quotes to a variable. Here’s an example:

val emptyString: String = ""

This code sample declares a variable called emptyString and sets its value to a literal empty string. As a result, the string variable becomes blank, or an empty string.

Using the String Constructor

Another way to create an empty string is by using the String constructor without any arguments. Here’s how you can do it:

val emptyString = String()

In this case, we don’t provide any initial content to the String constructor, so it creates an empty string object.

Common Use Cases

Creating empty strings may seem trivial, but it’s an essential operation in many Kotlin programs. Some common use cases include:

  1. Initializing Variables: You may want to initialize a string variable with an empty value before assigning it a meaningful value later in your code.
  2. Clearing Content: You can use an empty string to clear the content of an existing string variable or to reset it to an empty state.
  3. String Concatenation: Empty strings are often used as placeholders or separators when building more complex strings through concatenation.

Conclusion

In Kotlin, producing an empty string is a straightforward action that you’ll use a lot throughout your programming career. You have the freedom to work with empty strings as necessary in your Kotlin programmes, whether you use an empty string literal or the String constructor.

So feel free to create empty strings whenever necessary for your programming responsibilities, and keep creating fantastic Kotlin applications!

Related Posts

Kotlin – Initialize String

Kotlin String Operations with Example

Kotlin – Create Custom Exception

Kotlin Throw Exceptions Handling

Error Handling Try-Catch in Kotlin

Kotlin Array Example

Kotlin – Initialize String

Programming language Kotlin is flexible and succinct, and it has been increasingly popular in recent years. The String data type in Kotlin, which represents a series of characters, is one of the fundamental data types.

Each and every Kotlin developer should be able to initialise a String in Kotlin because it is a fundamental process.

This post will examine various Kotlin initialization strategies, with examples and explanations provided as we go.

This post will assist you in understanding the many methods available for initialising Strings in Kotlin, regardless of your level of Kotlin development experience.

To initialize a String variable in Kotlin, we may assign the String literal to the variable without specifying explicit type, or we may declare a variable of type String and assign a String literal later.

The following is a sample code snippet to initialize a variable with a String literal.

Using String Literals

The most common way to initialize a String in Kotlin is by using string literals. String literals are sequences of characters enclosed in double quotation marks (“). Here’s an example:

val greeting = "Hello, Kotlin!"

In this example, we’ve created a String variable named greeting and assigned it the value "Hello, Kotlin!" using a string literal. Kotlin automatically infers the type of the variable based on the assigned value.

Using the String Constructor

You can also initialize a String using the String constructor. This constructor takes a character sequence (e.g., an array of characters) as an argument. Here’s an example:

val message = String(charArrayOf('H', 'e', 'l', 'l', 'o'))

In this example, we’ve created a String variable named message by passing an array of characters to the String constructor. This method can be useful when you need to create a String from a character sequence dynamically.

Using String Templates

Kotlin allows you to initialize a String using string templates, which is a powerful feature for constructing Strings with dynamic values. You can embed expressions inside string literals using ${} syntax. Here’s an example:

val name = "Alice"
val greeting = "Hello, $name!"

In this example, the value of the name variable is inserted into the string template, resulting in the String greeting containing “Hello, Alice!”.

Using String Concatenation

Another way to initialize a String in Kotlin is by concatenating multiple strings together using the + operator. Here’s an example:

val firstName = "John"
val lastName = "Doe"
val fullName = firstName + " " + lastName

In this example, we’ve initialized the fullName String by concatenating the firstName, a space character, and the lastName. This method is useful when you need to build a complex string from smaller parts.

Using StringBuilder

If you need to build a String dynamically, especially when you are concatenating a large number of strings, it’s recommended to use the StringBuilder class for improved performance. Here’s an example:

val stringBuilder = StringBuilder()
stringBuilder.append("Hello,")
stringBuilder.append(" Kotlin!")
val result = stringBuilder.toString()

In this example, we’ve used a StringBuilder to efficiently construct the result String by appending multiple substrings. The toString() method is then called to convert the StringBuilder into a regular String.

Conclusion

Every Kotlin developer should be proficient in initialising Strings because it is a fundamental skill. Kotlin offers a number of ways to work with Strings that may be customised to your needs, whether you prefer string literals, string templates, or other approaches.

Five distinct techniques for initialising Strings in Kotlin have been described in this article. You may develop more effective and expressive code in your Kotlin projects by knowing when to apply these strategies.

Choose the approach that best satisfies your needs while keeping in mind that your individual use case and coding style will determine the way you select.

Related Posts

Kotlin String Operations with Example

Kotlin – Create Custom Exception

Kotlin Throw Exceptions Handling

Error Handling Try-Catch in Kotlin

Kotlin Array Example

Exploring Kotlin Ranges with Examples

Kotlin String Operations with Example

In this tutorial, we shall learn different string operations that are available in Kotlin programming language.

Introduction to Kotlin Strings

Strings are a fundamental data type in programming, and Kotlin provides a rich set of functions and operations to work with them effectively. Whether you’re dealing with text parsing, formatting, or searching within strings, Kotlin has you covered.

Creating Strings

In Kotlin, you can create strings using double-quoted literals:

val greeting = "Hello, Kotlin!"

String Interpolation

String interpolation allows you to embed expressions within string literals, making it easier to build dynamic strings:

val name = "Alice"
val message = "Hello, $name!"

String Concatenation

You can concatenate strings using the + operator or the plus function:

val firstName = "John"
val lastName = "Doe"
val fullName = firstName + " " + lastName
// Or
val fullName = firstName.plus(" ").plus(lastName)

String Templates

Kotlin provides several extension functions and properties for string manipulation, such as length, toUpperCase(), toLowerCase(), and more. Here’s an example:

val text = "Kotlin is amazing!"
val length = text.length
val upperCaseText = text.toUpperCase()

String Comparison

When comparing strings in Kotlin, you should use the equals() function for content comparison and == for reference comparison:

val str1 = "Kotlin"
val str2 = "Kotlin"
val str3 = "Java"

println(str1 == str2)  // true
println(str1.equals(str3))  // false

String Manipulation

Kotlin provides various methods for manipulating strings, such as substring(), replace(), and split():

val sentence = "Kotlin is fun!"
val word = sentence.substring(0, 6)  // Extract "Kotlin"
val newSentence = sentence.replace("fun", "awesome")  // "Kotlin is awesome!"
val words = sentence.split(" ")  // ["Kotlin", "is", "fun!"]

Regular Expressions

Kotlin supports regular expressions for advanced string manipulation tasks. You can use the Regex class to work with regex patterns:

val pattern = Regex("[0-9]+")
val text = "There are 42 apples and 3 oranges."
val numbers = pattern.findAll(text).map { it.value }.toList()
// numbers: ["42", "3"]

Conclusion

Mastering Kotlin string operations is essential for any Kotlin developer. In this article, we’ve covered the basics of string creation, interpolation, concatenation, templates, comparison, manipulation, and even ventured into regular expressions.

With this knowledge, you’ll be well-equipped to handle a wide range of string-related tasks in your Kotlin projects. So go ahead, dive into the world of Kotlin strings, and start building more robust and dynamic applications today!

Happy coding!

Related Posts

Kotlin – Create Custom Exception

Kotlin Throw Exceptions Handling

Error Handling Try-Catch in Kotlin

Kotlin Array Example

Exploring Kotlin Ranges with Examples

Exploring the Kotlin main() Function

Numeric String Validation in Flutter

Identifying if a string represents a numeric number is crucial when working with user inputs or data validation in Flutter and Dart.

In this blog post, we’ll look at a number of techniques for determining whether a string in Flutter is numerical using the Dart programming language.

To assist you in efficiently implementing this functionality, we’ll go over various cases and offer example code.

Create a Flutter Project

Ensure that you have Flutter installed on your machine. If not, refer to the official Flutter installation guide.

Navigate to the newly created project directory and open it in your preferred code editor.

Inside the lib/main.dart file, replace the existing code with the following:

void main() {
  final numericString = '12345';
  final nonNumericString = 'abcde';

  print('Is "$numericString" numeric? ${isNumeric(numericString)}');
  print('Is "$nonNumericString" numeric? ${isNumeric(nonNumericString)}');
}

bool isNumeric(String s) {
  if (s == null || s.isEmpty) return false;

  return double.tryParse(s) != null;
}

Save the changes and run the application using the following command:

flutter run

In the console, you will see the output indicating whether the provided strings are numeric or not.

Output

Is "12345" numeric? true
Is "abcde" numeric? false

Explanation

In the code above, we define two strings, numericString and nonNumericString, representing a numeric value and a non-numeric value, respectively.

We then call the isNumeric function to check if a given string is numeric or not. The isNumeric function utilizes the double.tryParse method, which attempts to parse the string as a double value.

If the parsing is successful, the string is considered numeric, and the function returns true; otherwise, it returns false.

Conclusion

Checking if a string is numeric is a common requirement in Flutter and Dart development. By utilizing the double.tryParse method, you can easily determine whether a string represents a valid numeric value.

The provided example demonstrates a simple and efficient way to check numeric strings in Flutter applications. Feel free to incorporate this logic into your data validation or user input handling workflows to ensure the accuracy and integrity of your application.

Remember, the code can be extended or modified to handle additional scenarios, such as checking for specific numeric formats or handling edge cases. Experiment with the provided example and explore further possibilities to enhance your string manipulation capabilities in Flutter and Dart.

Related Posts

Border of Container Widget in Flutter

Flutter Column Explained – Tutorial

Flutter Progress Indicators Tutorial

Flutter Center Widget Tutorial

Flutter BoxShadow Tutorial

Flutter Banner Location Tutorial