This file contains 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
fun Equals(view: View) { | |
var newCount=dataView.text.toString() | |
var result:Double?=null | |
//when işlemi ile operator butonların işlevlerini sağladık | |
when(operator){ | |
"/"->{ | |
result=oldCount.toDouble()/newCount.toDouble() | |
} | |
"*"->{ | |
result=oldCount.toDouble()*newCount.toDouble() |
This file contains 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
var operator = "*" | |
var oldCount="" | |
var newOperator=true | |
//operator butonlarımız | |
fun btn_Operator(view: View) { | |
var btn_Select= view as Button | |
when(btn_Select.id){ | |
btn_Div.id->{ | |
operator="/" | |
} |
This file contains 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
fun btn_Click(view: View) { | |
// if ile ekranı clear yapıyoruz | |
if (newOperator){ | |
dataView.setText("") | |
} | |
newOperator=false | |
//butonlarımız click yaptıgımızda ekranda islemleri gostermeyi sagliyoruz | |
var btnSelect = view as Button | |
var btnClickValue:String = dataView.text.toString() | |
when(btnSelect.id){ |
This file contains 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
[ | |
{ | |
"Name": "Ada", | |
"Surname": "Sayer", | |
"Number": 10, | |
"Gender": "Female", | |
"School": { | |
"Name": "ADU", | |
"City": "Aydın", | |
"Department": "MIS", |
This file contains 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
Card( | |
elevation: 4, | |
margin: EdgeInsets.fromLTRB(10, 60, 10, 60), | |
//EdgeInsets.only(left: 100, right: 100, top: 60, bottom: 60), | |
child: Padding( | |
padding: const EdgeInsets.all(5.0), | |
child: Column( | |
crossAxisAlignment: CrossAxisAlignment.start, | |
children: <Widget>[ | |
Text( |
This file contains 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
return Column( | |
children: <Widget>[ | |
Padding( | |
padding: const EdgeInsets.only( | |
top: 40, bottom: 50, left: 20, right: 20), | |
child: Row( | |
children: <Widget>[ | |
Column( | |
children: <Widget>[ | |
Icon( |
This file contains 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
return Padding( | |
padding: const EdgeInsets.only( | |
top: 10, bottom: 10, left: 15, right: 15), | |
child: Column( | |
children: <Widget>[ | |
ListTile( | |
title: Text( | |
"Personal", | |
style: TextStyle( | |
color: Color(0xff343572), |
NewerOlder