Skip to content

Instantly share code, notes, and snippets.

View sdkdeepa's full-sized avatar
🎯
Focusing

Deepa Subramanian sdkdeepa

🎯
Focusing
View GitHub Profile
@sdkdeepa
sdkdeepa / main.dart
Created January 10, 2024 02:15
solid-diamond-1519
import 'package:flutter/material.dart';
void main() {
runApp(const HorizonsApp());
}
class HorizonsApp extends StatelessWidget {
const HorizonsApp({super.key});
// This widget is the root of your application.
@sdkdeepa
sdkdeepa / main.dart
Last active April 7, 2023 07:28
SignUp Flutter
import 'package:flutter/material.dart';
void main() => runApp(const SignUpApp());
class SignUpApp extends StatelessWidget {
const SignUpApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
@sdkdeepa
sdkdeepa / main.dart
Last active April 3, 2023 03:51
Stateless Widget
import 'package:flutter/material.dart';
const Color darkBlue = Color.fromARGB(255, 18, 32, 47);
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
@sdkdeepa
sdkdeepa / main.dart
Last active March 20, 2023 07:04
Classes and Constructors in Dart
// Classes are blueprint for an object
// user object describried by using properties and methods
void main() {
// instantiaing a class with the User object
print("******************************");
print("To avoid hard codes values inside the class, created a constructor class.");
print("Constructor is a spl class");
print("******************************");
print('');
User userOne = User('Andy',30);
@sdkdeepa
sdkdeepa / main.dart
Last active March 20, 2023 07:05
Classes in Dart
// Classes are blueprint for an object
// user object describried by using properties and methods
void main() {
// instantiaing a class with the User object
User userOne = User();
print(userOne.username);
print(userOne.age);
userOne.login();
print("------------------------------------------");
print("Will create the same user with the name for userTwo");
@sdkdeepa
sdkdeepa / main.dart
Last active March 20, 2023 07:07
Lists in Dart
// Lists are like arrays in JS
// void main() {
// List names = ['Deepa', 'Andy', 'Stacy'];
// names.add('Raj');
// names.remove('Stacy');
// names.add(576);
// print(names);
@sdkdeepa
sdkdeepa / main.dart
Last active March 20, 2023 07:07
Functions in dart
//void returns nothing
//main() is the first method that dart will look for
void main() {
String greet = greetings();
int age = getAge();
print(greet);
print(age);
@sdkdeepa
sdkdeepa / readme.md
Last active March 20, 2023 07:08
Basics of Dart
//void returns nothing
//main() is the first method that dart will look for 

void main() {
  
  String greet = "Welcome";
  print(greet);

 String name = "Flutter Basics";
@sdkdeepa
sdkdeepa / Flexbox Froggy answers
Created September 27, 2021 05:56 — forked from lukasrudnik/Flexbox Froggy answers
Solutions Flexbox Froggy
1) justify-content: flex-end;
2) justify-content: center;
3) justify-content: space-around;
4) justify-content: space-between;
5) align-items: flex-end;
6) align-items: center;
justify-content: center;
7) justify-content: space-around;
8) flex-direction: row-reverse;
9) flex-direction: column;