This file contains hidden or 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
| import 'package:flutter/material.dart'; | |
| // Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file | |
| // for details. All rights reserved. Use of this source code is governed by a | |
| // BSD-style license that can be found in the LICENSE file. | |
| // primitive (değer tipler) variables = değişkenler | |
| // sayılar num, int, double | |
| // metinsel ifadeler string | |
| // evet-hayır ifadeleri bool |
This file contains hidden or 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
| // static => bu kelimenin en temel varlık sebebi sınıftaki method veya property'e sınıftan örnek | |
| // oluşturmadan erişmektir. | |
| // factory => bu kelime sayesinde constructor methoduna müdahale imkanı elde ederiz. | |
| class Kitap { | |
| final String baslik; | |
| static int? toplamKitapSayisi; | |
| static toplamdanDus() { |
This file contains hidden or 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
| // https://youtu.be/8ext9G7xspg?t=6715 | |
| List findNextEmpty(List<List<int>> sudoku) { | |
| for (int r = 0; r < 9; r++) { | |
| for (int c = 0; c < 9; c++) { | |
| if (sudoku[r][c] == 0) { | |
| return [r, c]; | |
| } | |
| } | |
| } |
This file contains hidden or 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
| class Covid { | |
| String? patients; | |
| String? totalPatients; | |
| String? deaths; | |
| String? totalDeaths; | |
| String? recovered; | |
| String? totalRecovered; | |
| String? totalIntubated; | |
| String? totalIntensiveCare; |
This file contains hidden or 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
| // Dart bir yazılım dilidir. | |
| // Flutter ise Dart dili kullanılarak hazırlanmış bir kod çerçevesidir (Framework). | |
| // Arayüz UI -> (User interface) geliştirme aracıdır | |
| // import içe al -> ithat et | |
| // export dışa aktar -> ihracat yap | |
| import 'package:flutter/material.dart'; | |
| void main() { | |
| // runApp -> uygulama çalıştır |
This file contains hidden or 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
| void main() { | |
| // String | |
| print("tırnak içinde belirtilen verilerin tipi String'tir"); | |
| // int | |
| print(234.runtimeType); | |
| // double | |
| print(2.34.runtimeType); | |
| // bool => boolean | |
| // reserve edilmiş kelime veya kelime gruplar | |
| // küçük büyük harf duyarlı |
This file contains hidden or 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
| // Compiler => derleyici => mütercim | |
| // main => ana | |
| // işlem tanımlama | |
| // 1. İşleme isim veriyoruz | |
| // 2. a. işlem olduğunu belirtmek için parantez açıp kapatıyoruz | |
| // 2. b. işlemde işlenmesini istediğimiz şey(ler) var ise bunları parantez içinde yazıyoruz. | |
| // 3. yapılacak işleri süslü parantezler içine yazıyoruz |
This file contains hidden or 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
| import 'dart:convert'; | |
| import 'package:flutter/material.dart'; | |
| main() => runApp(MaterialApp(home: LocalJsonKonusu())); | |
| class LocalJsonKonusu extends StatefulWidget { | |
| @override | |
| State<StatefulWidget> createState() => LocaleState(); | |
| } |
This file contains hidden or 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
| // Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file | |
| // for details. All rights reserved. Use of this source code is governed by a | |
| // BSD-style license that can be found in the LICENSE file. | |
| import 'package:flutter/material.dart'; | |
| // slayt linki: https://docs.google.com/presentation/d/1tuiMbSNSipgOyc-bp-_sTh3u7aCj0Wo07KV7eDAoDuM/ | |
| // önceki ve çalışmayacak olan link: https://dartpad.dev/b6409e10de32b280b8938aa75364fa7b | |
| // çalışan link | |
| // 1. Sıralı ve hepsi zorunlu |
This file contains hidden or 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
| import 'package:flutter/material.dart'; | |
| void main() => runApp(MyApp()); | |
| class MyApp extends StatelessWidget { | |
| @override | |
| Widget build(BuildContext context) { | |
| return MaterialApp( | |
| debugShowCheckedModeBanner: false, | |
| title: 'Projem', |