Skip to content

Instantly share code, notes, and snippets.

View fatihhcan's full-sized avatar

Fatih Can fatihhcan

View GitHub Profile
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),
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(
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(
[
{
"Name": "Ada",
"Surname": "Sayer",
"Number": 10,
"Gender": "Female",
"School": {
"Name": "ADU",
"City": "Aydın",
"Department": "MIS",
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){
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 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()
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".LoginActivity">
<ImageView
android:id="@+id/imageView"
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".RegisterActivity">
<EditText
android:id="@+id/et_Mail"
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity">
<TextView
android:layout_width="wrap_content"