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'; | |
import 'package:splashy/splashy.dart'; | |
class Linkedin extends StatelessWidget { | |
Future<Widget> customFunction() { | |
print("Background process"); | |
return Future.value(LinkedinHomePage()); | |
} | |
@override |
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'; | |
import 'package:splashy/splashy.dart'; | |
class Amazon extends StatelessWidget { | |
Future<Widget> customFunction() { | |
print("Background process"); | |
return Future.value(AmazonHomePage()); | |
} | |
@override |
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
if (firstInput == "exit") { | |
exit(0); | |
} else { | |
firstNum = double.parse(firstInput); | |
} |
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
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; | |
} |
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
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) { |
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 'calc.dart'; | |
void main(List<String> args) { | |
} | |
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
class Calc { | |
// instance fields | |
double num1; | |
double num2; | |
//... | |
} |
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
public class Calc { | |
// instance fields | |
double num1; | |
double num2; | |
//... | |
} |