Skip to content

Instantly share code, notes, and snippets.

Avatar
🚀
Nex Step

Jean Luc Kabulu jeanluc243

🚀
Nex Step
View GitHub Profile
View linkedin_page.dart
import 'package:flutter/material.dart';
import 'package:splashy/splashy.dart';
class Linkedin extends StatelessWidget {
Future<Widget> customFunction() {
print("Background process");
return Future.value(LinkedinHomePage());
}
@override
View amazone_slash.dart
import 'package:flutter/material.dart';
import 'package:splashy/splashy.dart';
class Amazon extends StatelessWidget {
Future<Widget> customFunction() {
print("Background process");
return Future.value(AmazonHomePage());
}
@override
View backToMainMenu.dart
static void backToMainMenu() {
print("\nReturning to main menu...\n");
wholeThing();
}
View check-input.dart
if (firstInput == "exit") {
exit(0);
} else {
firstNum = double.parse(firstInput);
}
View exponentiate.dart
double expontentiate(double firstNum, double secondNum) {
// Math.pow returns a double, so use typecasting to account for large numbers
double exponentProd = pow(firstNum, secondNum);
return exponentProd;
}
View math-fxns.dart
double add(double firstNum, double secondNum) {
return firstNum + secondNum;
}
double subtract(double firstNum, double secondNum) {
return firstNum - secondNum;
}
double multiply(double firstNum, double secondNum) {
return firstNum * secondNum;
}
double divide(double firstNum, double secondNum) {
View empty-main.dart
import 'calc.dart';
void main(List<String> args) {
}
View Calc-example.dart
class Calc {
// instance fields
double num1;
double num2;
//...
}
View Calc-example.dart
public class Calc {
// instance fields
double num1;
double num2;
//...
}