Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Evden çalışmak

Furkan TOPTAŞ furkantoptass

🏠
Evden çalışmak
View GitHub Profile
@furkantoptass
furkantoptass / AnimSearchBar Son hali
Created Apr 13, 2021
anim_search_bar kullanılarak girilen kelimeye göre arka plan rengi değiştiren uygulamamızın son hali
View AnimSearchBar 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(
View No material widget found hatası
@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 Apr 13, 2021
AnimSearchBar kullnımı
View example AnimSearchBar
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) {
View gist:bd95bd08b21f14eec92c62415fe228b8
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 / AssetTanimlama
Created Mar 4, 2021
Asset Tanımlama RedorBlue projesi için
View AssetTanimlama
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 / RedorBlueCup
Last active Mar 4, 2021
Red or Blue Cup main.dart code
View RedorBlueCup
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 / Eklentiler
Created Mar 4, 2021
Kullanilacak ekletiler
View Eklentiler
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.