Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
175 changes: 175 additions & 0 deletions .dart_tool/package_config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,175 @@
{
"configVersion": 2,
"packages": [
{
"name": "archive",
"rootUri": "file:///C:/src/flutter/flutter/.pub-cache/hosted/pub.dartlang.org/archive-2.0.13",
"packageUri": "lib/",
"languageVersion": "2.0"
},
{
"name": "args",
"rootUri": "file:///C:/src/flutter/flutter/.pub-cache/hosted/pub.dartlang.org/args-1.6.0",
"packageUri": "lib/",
"languageVersion": "2.3"
},
{
"name": "async",
"rootUri": "file:///C:/src/flutter/flutter/.pub-cache/hosted/pub.dartlang.org/async-2.4.1",
"packageUri": "lib/",
"languageVersion": "2.2"
},
{
"name": "boolean_selector",
"rootUri": "file:///C:/src/flutter/flutter/.pub-cache/hosted/pub.dartlang.org/boolean_selector-2.0.0",
"packageUri": "lib/",
"languageVersion": "2.4"
},
{
"name": "charcode",
"rootUri": "file:///C:/src/flutter/flutter/.pub-cache/hosted/pub.dartlang.org/charcode-1.1.3",
"packageUri": "lib/",
"languageVersion": "2.0"
},
{
"name": "collection",
"rootUri": "file:///C:/src/flutter/flutter/.pub-cache/hosted/pub.dartlang.org/collection-1.14.12",
"packageUri": "lib/",
"languageVersion": "2.0"
},
{
"name": "convert",
"rootUri": "file:///C:/src/flutter/flutter/.pub-cache/hosted/pub.dartlang.org/convert-2.1.1",
"packageUri": "lib/",
"languageVersion": "1.17"
},
{
"name": "crypto",
"rootUri": "file:///C:/src/flutter/flutter/.pub-cache/hosted/pub.dartlang.org/crypto-2.1.4",
"packageUri": "lib/",
"languageVersion": "2.1"
},
{
"name": "cupertino_icons",
"rootUri": "file:///C:/src/flutter/flutter/.pub-cache/hosted/pub.dartlang.org/cupertino_icons-0.1.3",
"packageUri": "lib/",
"languageVersion": "2.0"
},
{
"name": "flutter",
"rootUri": "file:///C:/src/flutter/flutter/packages/flutter",
"packageUri": "lib/",
"languageVersion": "2.2"
},
{
"name": "flutter_test",
"rootUri": "file:///C:/src/flutter/flutter/packages/flutter_test",
"packageUri": "lib/",
"languageVersion": "2.2"
},
{
"name": "image",
"rootUri": "file:///C:/src/flutter/flutter/.pub-cache/hosted/pub.dartlang.org/image-2.1.12",
"packageUri": "lib/",
"languageVersion": "2.0"
},
{
"name": "matcher",
"rootUri": "file:///C:/src/flutter/flutter/.pub-cache/hosted/pub.dartlang.org/matcher-0.12.6",
"packageUri": "lib/",
"languageVersion": "2.2"
},
{
"name": "meta",
"rootUri": "file:///C:/src/flutter/flutter/.pub-cache/hosted/pub.dartlang.org/meta-1.1.8",
"packageUri": "lib/",
"languageVersion": "1.12"
},
{
"name": "path",
"rootUri": "file:///C:/src/flutter/flutter/.pub-cache/hosted/pub.dartlang.org/path-1.6.4",
"packageUri": "lib/",
"languageVersion": "2.0"
},
{
"name": "petitparser",
"rootUri": "file:///C:/src/flutter/flutter/.pub-cache/hosted/pub.dartlang.org/petitparser-2.4.0",
"packageUri": "lib/",
"languageVersion": "2.4"
},
{
"name": "quiver",
"rootUri": "file:///C:/src/flutter/flutter/.pub-cache/hosted/pub.dartlang.org/quiver-2.1.3",
"packageUri": "lib/",
"languageVersion": "2.0"
},
{
"name": "sky_engine",
"rootUri": "file:///C:/src/flutter/flutter/bin/cache/pkg/sky_engine",
"packageUri": "lib/",
"languageVersion": "1.11"
},
{
"name": "source_span",
"rootUri": "file:///C:/src/flutter/flutter/.pub-cache/hosted/pub.dartlang.org/source_span-1.7.0",
"packageUri": "lib/",
"languageVersion": "2.6"
},
{
"name": "stack_trace",
"rootUri": "file:///C:/src/flutter/flutter/.pub-cache/hosted/pub.dartlang.org/stack_trace-1.9.3",
"packageUri": "lib/",
"languageVersion": "1.23"
},
{
"name": "stream_channel",
"rootUri": "file:///C:/src/flutter/flutter/.pub-cache/hosted/pub.dartlang.org/stream_channel-2.0.0",
"packageUri": "lib/",
"languageVersion": "2.0"
},
{
"name": "string_scanner",
"rootUri": "file:///C:/src/flutter/flutter/.pub-cache/hosted/pub.dartlang.org/string_scanner-1.0.5",
"packageUri": "lib/",
"languageVersion": "2.0"
},
{
"name": "term_glyph",
"rootUri": "file:///C:/src/flutter/flutter/.pub-cache/hosted/pub.dartlang.org/term_glyph-1.1.0",
"packageUri": "lib/",
"languageVersion": "1.8"
},
{
"name": "test_api",
"rootUri": "file:///C:/src/flutter/flutter/.pub-cache/hosted/pub.dartlang.org/test_api-0.2.15",
"packageUri": "lib/",
"languageVersion": "2.4"
},
{
"name": "typed_data",
"rootUri": "file:///C:/src/flutter/flutter/.pub-cache/hosted/pub.dartlang.org/typed_data-1.1.6",
"packageUri": "lib/",
"languageVersion": "2.0"
},
{
"name": "vector_math",
"rootUri": "file:///C:/src/flutter/flutter/.pub-cache/hosted/pub.dartlang.org/vector_math-2.0.8",
"packageUri": "lib/",
"languageVersion": "2.0"
},
{
"name": "xml",
"rootUri": "file:///C:/src/flutter/flutter/.pub-cache/hosted/pub.dartlang.org/xml-3.6.1",
"packageUri": "lib/",
"languageVersion": "2.6"
},
{
"name": "calculatorapp",
"rootUri": "../",
"packageUri": "lib/"
}
],
"generated": "2020-10-21T15:16:35.105695Z",
"generator": "pub",
"generatorVersion": "2.8.3"
}
11 changes: 11 additions & 0 deletions ios/Flutter/flutter_export_environment.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/sh
# This is a generated file; do not edit or check into version control.
export "FLUTTER_ROOT=C:\src\flutter\flutter"
export "FLUTTER_APPLICATION_PATH=D:\open source projects\fluttercalculator"
export "FLUTTER_TARGET=lib\main.dart"
export "FLUTTER_BUILD_DIR=build"
export "SYMROOT=${SOURCE_ROOT}/../build\ios"
export "OTHER_LDFLAGS=$(inherited) -framework Flutter"
export "FLUTTER_FRAMEWORK_DIR=C:\src\flutter\flutter\bin\cache\artifacts\engine\ios"
export "FLUTTER_BUILD_NAME=1.0.0"
export "FLUTTER_BUILD_NUMBER=1"
146 changes: 74 additions & 72 deletions lib/home_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -56,78 +56,80 @@ class HomePageState extends State<HomePage> {
appBar: new AppBar(
title: new Text("Calculator"),
),
body: new Container(
padding: const EdgeInsets.all(40.0),
child: new Column(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
new Text(
"Output : $sum",
style: new TextStyle(
fontSize: 20.0,
fontWeight: FontWeight.bold,
color: Colors.purple),
),
new TextField(
keyboardType: TextInputType.number,
decoration: new InputDecoration(hintText: "Enter Number 1"),
controller: t1,
),
new TextField(
keyboardType: TextInputType.number,
decoration: new InputDecoration(hintText: "Enter Number 2"),
controller: t2,
),
new Padding(
padding: const EdgeInsets.only(top: 20.0),
),
new Row(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: <Widget>[
new MaterialButton(
child: new Text("+"),
color: Colors.greenAccent,
onPressed: doAddition,
),
new MaterialButton(
child: new Text("-"),
color: Colors.greenAccent,
onPressed: doSub,
),
],
),
new Padding(
padding: const EdgeInsets.only(top: 20.0),
),
new Row(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: <Widget>[
new MaterialButton(
child: new Text("*"),
color: Colors.greenAccent,
onPressed: doMul,
),
new MaterialButton(
child: new Text("/"),
color: Colors.greenAccent,
onPressed: doDiv,
),
],
),
new Padding(
padding: const EdgeInsets.only(top: 20.0),
),
new Row(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
new MaterialButton(
child: new Text("Clear"),
color: Colors.greenAccent,
onPressed: doClear,
),
],
)
],
body: SingleChildScrollView(
child: new Container(
padding: const EdgeInsets.all(40.0),
child: new Column(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
new Text(
"Output : $sum",
style: new TextStyle(
fontSize: 20.0,
fontWeight: FontWeight.bold,
color: Colors.purple),
),
new TextField(
keyboardType: TextInputType.number,
decoration: new InputDecoration(hintText: "Enter Number 1"),
controller: t1,
),
new TextField(
keyboardType: TextInputType.number,
decoration: new InputDecoration(hintText: "Enter Number 2"),
controller: t2,
),
new Padding(
padding: const EdgeInsets.only(top: 20.0),
),
new Row(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: <Widget>[
new MaterialButton(
child: new Text("+"),
color: Colors.greenAccent,
onPressed: doAddition,
),
new MaterialButton(
child: new Text("-"),
color: Colors.greenAccent,
onPressed: doSub,
),
],
),
new Padding(
padding: const EdgeInsets.only(top: 20.0),
),
new Row(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: <Widget>[
new MaterialButton(
child: new Text("*"),
color: Colors.greenAccent,
onPressed: doMul,
),
new MaterialButton(
child: new Text("/"),
color: Colors.greenAccent,
onPressed: doDiv,
),
],
),
new Padding(
padding: const EdgeInsets.only(top: 20.0),
),
new Row(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
new MaterialButton(
child: new Text("Clear"),
color: Colors.greenAccent,
onPressed: doClear,
),
],
)
],
),
),
),
);
Expand Down