This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Flutter Responsive Datatable | |
// Flutter Datatable Class: https://api.flutter.dev/flutter/material/DataTable-class.html | |
// Flutter code sample for DataTable | |
// This sample shows how to display a [DataTable] with three columns: name, age, and | |
// role. The columns are defined by three [DataColumn] objects. The table | |
// contains three rows of data for three example users, the data for which | |
// is defined by three [DataRow] objects. | |
// |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:cloud_firestore/cloud_firestore.dart'; | |
import 'package:firebase_auth/firebase_auth.dart'; | |
class Event { | |
const Event({ | |
required this.id, | |
required this.creatorId, | |
required this.attendeeIds, | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file | |
// for details. All rights reserved. Use of this source code is governed by a | |
// BSD-style license that can be found in the LICENSE file. | |
import 'dart:math' as math; | |
import 'package:flutter/foundation.dart'; | |
import 'package:flutter/gestures.dart'; | |
import 'package:flutter/material.dart'; | |
import 'package:flutter/rendering.dart'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.gdsc.layout_tutorial | |
import android.os.Bundle | |
import androidx.activity.ComponentActivity | |
import androidx.activity.compose.setContent | |
import androidx.compose.foundation.Image | |
import androidx.compose.foundation.background | |
import androidx.compose.foundation.border | |
import androidx.compose.foundation.layout.Arrangement | |
import androidx.compose.foundation.layout.Box |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# remember, in dart, when a function doesn't return anything, then it's type is void | |
def greeting(name): | |
print(f'Hello {name}!!!') | |
def sum(first_number, second_number): | |
return first_number + second_number | |
def difference(n1, n2): | |
print(f'The difference between {n1} & {n2} is {n1 - n2}') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void greeting(String name) { | |
print('Hello $name!!!'); | |
} | |
int sum(int firstNumber, int secondNumber) { | |
return firstNumber + secondNumber; | |
} | |
void difference(int n1, int n2) { | |
print('The difference between $n1 & $n2 is ${n1 - n2}'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void main() { | |
// number 1 | |
// number 2 | |
// sum | |
// The type of the data | |
// video | |
// image | |
// app | |
// character |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
void main() { | |
runApp(MyApp()); | |
} | |
class MyApp extends StatelessWidget { | |
const MyApp({super.key}); | |
@override |
OlderNewer