Skip to content

Instantly share code, notes, and snippets.

View mhmadip's full-sized avatar

Mohammad Salim mhmadip

View GitHub Profile
@mhmadip
mhmadip / main.dart
Created August 22, 2021 16:48
Hello Switch Flutter App
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
void main() {
runApp(MaterialApp(
debugShowCheckedModeBanner: false,
home: Scaffold(
appBar: AppBar(
title: Text("Hello Switch"),
),
@mhmadip
mhmadip / gist:7779470cfcb40a4338784feecba2ea1f
Created August 18, 2021 10:13
Homework 1: Build your business app
import 'package:flutter/material.dart';
void main() {
runApp(MaterialApp(
debugShowCheckedModeBanner: false,
title: 'My Company App',
home: MyHomeScreen(),
));
}
@mhmadip
mhmadip / main.dart
Last active May 11, 2021 10:46
Sum of List Elements Challange - Mohammad Salim IT Dept. @ TIU
int sum(List<int> intList, int index) {
if (index == 0) {
return intList[index];
} else {
return intList[index] + sum(intList, index - 1);
}
}
void main() {
var test = [4, 2, 3, 4];
@mhmadip
mhmadip / main.dart
Last active February 20, 2021 20:12
Rectangle App
import 'package:flutter/material.dart';
void main() => runApp(MaterialApp(
title: "Hello Rectangle",
home: Scaffold(
appBar: AppBar(
title: Text("Rectangle App"),
),
body: RectangleApp(),
),