Skip to content

Instantly share code, notes, and snippets.

View LokieVikky's full-sized avatar
🎯
Dart makes my heart Flutter

Lokesh N LokieVikky

🎯
Dart makes my heart Flutter
  • Chennai
  • 06:19 (UTC +05:30)
View GitHub Profile
@LokieVikky
LokieVikky / main.dart
Created January 19, 2023 04:59
Calculator
void main() {
Calculator calc = Calculator();
int result = calc.add(6, 7);
print(result);
result = calc.sub(3, 5, 8);
print(result);
@LokieVikky
LokieVikky / slide_transition.dart
Created January 24, 2023 16:07
SlideTransition
import 'package:flutter/material.dart';
void main(){
runApp(const SlideTransitionExample());
}
class SlideTransitionExample extends StatefulWidget {
const SlideTransitionExample({Key? key}) : super(key: key);
@override
void main() {
// First class
// Why Dart
// What is a framework
// Diffrence between other hybrid mobile frameworks and flutter
// Variable
// Datatypes in dart
// int - whole numbers
void main() {
// First class
// Why Dart
// What is a framework
// Diffrence between other hybrid mobile frameworks and flutter
// Variable
// Datatypes in dart
// int - whole numbers
void main() {
// Imutability - final and const
// const variables should be initialized while declaring in complie time.
// final variables can be initialized during runtime.
// Both final and const variables can only be set once, (i.e cannot be reassigned)
// Operators
// Arithmetic - + , - , * , / , %, ++, --
// Logical - && || !
// comparison - < , >, ==, !=, <=, >=
void main() {
Remote r = Remote();
r.numberOfButton = 20;
print(r.numberOfButton);
Remote r2 = Remote();
print(r2.numberOfButton);
void main() {
Bird b = Bird();
b.fly();
Parrot p = Parrot();
p.fly();
p.speak();
// Escaping String
void main() {
// String topics
// length
// substring
// split
// replace
// isEmpty
// isNotEmpty
// contains
void main() {
// My First gist
Calculator calc = Calculator();
int result = calc.addTwoNumbers(1, 2);
int result2 = calc.addTwoNumbers(result, 5);
print(result2);
void main() {
// // if(condition){
// // code block
// // }
// int a = 30;
// int b = 20;
// if (a == 10) {
// print('a==10');