Skip to content

Instantly share code, notes, and snippets.

View angelabauer's full-sized avatar

Angela Yu angelabauer

View GitHub Profile
import 'dart:math';
void main() {
//Full function
// double bmiCalculator(double height, double weight) {
// final bmi = weight / pow(height, 2);
// return bmi;
// }
//Fat arrow function
class DicePageState extends State<DicePage> {
int dice1Value = 1;
int dice2Value = 2;
@override
Widget build(BuildContext context) {
return Column(
children: <Widget>[
FlatButton(
child: Image(
import 'package:flutter/material.dart';
void main() => runApp(
MaterialApp(
home: BallPage(),
),
);
class BallPage extends StatelessWidget {
@override
import 'package:flutter/material.dart';
void main() => runApp(
MaterialApp(
home: BallPage(),
),
);
class BallPage extends StatelessWidget {
@override
import 'package:flutter/material.dart';
void main() => runApp(
MaterialApp(
home: BallPage(),
),
);
class BallPage extends StatelessWidget {
@override
import 'dart:math';
import 'package:flutter/material.dart';
void main() => runApp(
MaterialApp(
home: BallPage(),
),
);
class BallPage extends StatelessWidget {
import 'dart:math';
import 'package:flutter/material.dart';
void main() => runApp(
MaterialApp(
home: BallPage(),
),
);
class BallPage extends StatelessWidget {
import 'package:flutter/material.dart';
import 'package:audioplayers/audio_cache.dart';
const sounds = [
'note1.wav',
'note2.wav',
'note3.wav',
'note4.wav',
'note5.wav',
'note6.wav',
//Challenge: Without changing the main() function, can you make this code work and get the result printed in the console?
void main() {
int step1Result = add(n1: 5, n2: 9);
int step2Result = multiply(step1Result, 5);
double finalResult = step2Result / 3;
void main() {
List<String> myList = [
'Angela',
'James',
'Katie',
'Jack',
];
}