What is Flutter? Expain Flutter by Shiva Sir | Flutter Features

0

What is Flutter 

 Flutter is an open-source UI software kit created by Google and released in 2018. Using Dart as a primary programming language, Flutter allows developers to create cross-platform applications. One of the reasons why Flutter developers have a high demand in organizations that work with Flutter is that being a framework that helps develop cross-platform applications, it helps organizations cut down on development costs and save time



Who Is a Flutter Developer?


A Flutter developer develops cross-platform applications by leveraging Flutter, an open-source UI software development kit that is useful for creating both Android and iOS apps


Flutter Developer Salary in the US


The average salary for a beginner-level Flutter developer in the United States is estimated to be $70,000 per annum


However, the average salary for beginner-level Flutter developers is INR 4 lakhs.



5 Reasons Flutter is Worth Learning


Quick Development

Compared to its competitors, the Flutter development framework is faster. Flutter accelerates app performance and development, saving you a significant amount of time. Flutter has a rich widget library and a UI library that accelerates and simplifies the UI/UX development process.


One Codebase for all Platforms

You don’t have to create separate code for Android and iOS devices while building Flutter apps. Flutter’s code reusability allows developers to create a single codebase they can use on Android, iOS, desktop apps, and other platforms. A single code base significantly reduces development time, lowers costs, and allows you to launch your application much faster.


Flutter Developers are in High Demand

Flutter is becoming more popular among developers and companies. Employers will need to hire experienced Flutter developers due to this transition, increasing Flutter opportunities in the job market. So, if you want to work as a Flutter developer, starting your Flutter career now will be beneficial.



Easy to Learn

Flutter uses the Dart programming language, which is simple to learn. It’s much easier to make mobile and desktop applications with Flutter because it is a modern framework. If you’ve worked with Java, Swift, or React Native, you’ll notice that Flutter is quite different. You can also create accurate native applications without writing as much code.



Huge Widget Library


Dart overview


Dart is a client-optimized language for developing fast apps on any platform. Its goal is to offer the most productive programming language for multi-platform development, paired with a flexible execution runtime platform for app frameworks.


Create First Program using Dart Programming Language:-

1) Open Notepad

2) Save file hello.dart

3) write this code

void main()

{


      print("welcome in dart");


}


4) open command prompt to type cmd on current folder address bar

5) write command to execute 


dart filename

6)program executed successfully

Calculate SI Program in Dart Language:-

void main()

{

  var p = 12000;

  var r = 2.5;

  var t = 3;

  var si = (p*r*t)/100;

  print("Total Interest is ${si}");


}



How to take user input in dart?

dart provide io module to contain predefine method.

first import this module

import 'dart:io'

var varname = stdin.readLineSync();

This method return userinput into String pattern hence dart provide typecasting method to convert into another primitive type data.


Convert String to int:-

int.parse()

Convert String to float

float.parse()


Convert String to double use 

double.parse()


Create program in dart to calculate simple interest with User Input:-



import 'dart:io';

void main()
{
  print("Enter P Value");
  var p = stdin.readLineSync()!;
   print("Enter R Value");
  var r = stdin.readLineSync()!;
   print("Enter T Value");
  var t = stdin.readLineSync()!;
  var si = double.parse(p)*double.parse(r)*double.parse(t)/100;
  print("Total Interest is ${si}");

}


WAP to print name and mobile no?

import 'dart:io';
void main()
{
  var name;
  var mobile;
  print("Enter name");
  name = stdin.readLineSync();
  print("Enter mobile");
  mobile = stdin.readLineSync();
  print("name is ${name} and mobile no is ${mobile}");
}



WAP to calculate Area of Triangle using herons formula?

import 'dart:math';
void main()
{
  var a=3;
  var b=4;
  var c=5;
  var s = (a+b+c)/2;
  var res = sqrt(s*(s-a)*(s-b)*(s-c));
  print("Area is ${res}");
}

WAP to calculate Addition of Complex Number?

void main()
{
  var a=2;
  var b=3;
  var c=4;
  var d=5;
  var num1 = "${a} + i${b}";
  var num2 = "${c} + i${d}";
  var r = a+c;
  var i = b+d;
  var num3 = "${r} + i${i}";
  print(num1);
  print(num2);
  print(num3);
}

Assignments:-
1) WAP to convert feet to inch and inch to feet?
2) WAP to calculate Compound Interest?
3) WAP to convert temperatures to C to F?
4) WAP to move the ball five step up and five step down
5) WAP to calculate area of sphere and circles?




void main() { 

   int n = "hello"; 

   print(n); 


class TestClass {   

   void disp() {     

      print("Hello World"); 

   } 

}  

void main() {   

   TestClass c = new TestClass();   

   c.disp();  

}

Create  Program to calculate Compound Interest?


import 'dart:io';
import 'dart:math';
void main()
{
    print("Enter Principal");
    var p = double.parse(stdin.readLineSync()!);
    print("Enter rate ");
    var r =double.parse(stdin.readLineSync()!);
    print("Enter time ");
    var t =double.parse(stdin.readLineSync()!);
    var n = 12;
    r=r/100;
    var total = p* pow((1+r/n),n*t) ;
    print("Total Interest Amount is ${total-p}");

}

Create Program to move the ball five step up and five step down?

void main()
{
  var position=0;
  print('current position is ${position}');
  position+=5;
  print('current position is ${position}');
  position-=5;
  print('current position is ${position}');
  position-=5;
  print('current position is ${position}');

}

Assignments:-

WAP to create salary calculator where basic, ta, da, comm, pf, leave will be entered by the user? WAP to create emi calculator? WAP to create marksheet of 12th class student, display only percentage? WAP to reverse five digit number? 12345 o/p 54321 WAP to print the any name is ascii code?




Tags

Post a Comment

0Comments

POST Answer of Questions and ASK to Doubt

Post a Comment (0)