Skip to content

Instantly share code, notes, and snippets.

View furkantoptass's full-sized avatar
🏠
Evden çalışmak

Furkan TOPTAŞ furkantoptass

🏠
Evden çalışmak
View GitHub Profile
app.Use(async (context, next) =>
{
await context.Response.WriteAsync("app.Use() 1 Oncesi\n");
await next();
await context.Response.WriteAsync("app.Use() 1 Sonrasi\n");
});
app.Use(async (context, next) =>
{
await context.Response.WriteAsync("app.Use() 2 Oncesi\n");
@furkantoptass
furkantoptass / AnimSearchBar Son hali
Created April 13, 2021 11:17
anim_search_bar kullanılarak girilen kelimeye göre arka plan rengi değiştiren uygulamamızın son hali
class _AppState extends State<App> {
TextEditingController textController = TextEditingController();
String aranan = ""; //Arama çubuguna girilen değer
String arananEkran = ""; //Ekranda gösterilen Arama çubugundan alınan veri
Color color = Colors.deepOrange[100]; //Arkaplan rengi değiştirmek için
@override
Widget build(BuildContext context) {
return Scaffold(
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text("Webmaster.Kitchen"),
backgroundColor: Colors.deepOrangeAccent,
),
body: Padding(
padding: const EdgeInsets.only(top: 58.0, right: 10, left: 10),
@furkantoptass
furkantoptass / example AnimSearchBar
Last active April 13, 2021 09:33
AnimSearchBar kullnımı
import 'package:anim_search_bar/anim_search_bar.dart';
import 'package:flutter/material.dart';
void main() async {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
@furkantoptass
furkantoptass / gist:bd95bd08b21f14eec92c62415fe228b8
Created April 13, 2021 09:25
anim_search_bar eklentisi ekleme
dependencies:
flutter:
sdk: flutter
# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.
cupertino_icons: ^1.0.2
anim_search_bar: ^2.0.1 # Animasyonlu Arama cubugu için gerekli olan eklentimiz.
@furkantoptass
furkantoptass / RedorBlueCup
Last active March 4, 2021 10:51
Red or Blue Cup main.dart code
import 'dart:io';
import 'package:flutter/material.dart';
import 'package:image_picker/image_picker.dart';
import 'package:tflite/tflite.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@furkantoptass
furkantoptass / AssetTanimlama
Created March 4, 2021 10:48
Asset Tanımlama RedorBlue projesi için
flutter:
# The following line ensures that the Material Icons font is
# included with your application, so that you can use the icons in
# the material Icons class.
uses-material-design: true
# To add assets to your application, add an assets section, like this:
#Tanımlama aşagıdaki gibi olmalıdır:
@furkantoptass
furkantoptass / Eklentiler
Created March 4, 2021 08:30
Kullanilacak ekletiler
environment:
sdk: ">=2.7.0 <3.0.0"
dependencies:
flutter:
sdk: flutter
image_picker: ^0.6.7+22 #Resimleri galeriden alabilmek için kullanacagımız eklenti.
tflite: ^1.1.1 #Resimlerimizi makineye öğretecek eklentimiz.