Skip to content

Instantly share code, notes, and snippets.

View fatihhcan's full-sized avatar

Fatih Can fatihhcan

View GitHub Profile
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()
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="/"
}
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){
[
{
"Name": "Ada",
"Surname": "Sayer",
"Number": 10,
"Gender": "Female",
"School": {
"Name": "ADU",
"City": "Aydın",
"Department": "MIS",
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(
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(
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),