Flutter is a powerful UI toolkit that allows you to build apps for multiple platforms such as Android, iOS and the web. We will discuss how you can get started using Flutter, the development tools and plugins that can boost your productivity, and we’re going to create a simple real-time chat application.
void main() {
String firstName = "Elon";
String lastName = "Musk";
var age = 0;
// Outputs a statement or value
print(firstName);
// String concatenation
print(firstName + " " + lastName);
// String interpolation
print("$firstName $lastName");
// Inferred variable has a type of int, let's try changing its value
print("Age is ${age + 5}");
}
void main() {
String firstName = "Elon";
String lastName = "Musk";
// Function with no return type
sayHello();
// Function with a return type of String
print(getFullname(firstName, lastName));
}
void sayHello() {
print("Hello DSC!");
}
String getFullname(String firstName, String lastName) {
return "$firstName $lastName";
}
class Planet {
String name;
int radius;
Planet(this.name, this.radius);
}
void main() {
// Create a planet object with type Planet
Planet earth = Planet("Earth", 6731);
print("${earth.name}'s radius is ${earth.radius} KMs.");
}
NodeJS is an asynchronous event-driven JavaScript runtime.
DownloadSOCKET.IO is JavaScript library used for real-time, bi-directional communication between clients and servers.
Downloadsocket_io_client is a port of JavaScript Node.js library in Flutter.
DownloadSource code
View on GithubChat App
Download APKWeb
Visit websiteDesktop for MacOS
Download (MacOS)Let's keep in touch on Twitter:
@joshuamdeguzmanFollow my projects on Github:
@joshuadeguzman