diff --git a/lib/dosya.dart b/lib/dosya.dart deleted file mode 100644 index 3096c20..0000000 --- a/lib/dosya.dart +++ /dev/null @@ -1,7 +0,0 @@ -void islem(String metin, int sayi) { - for (int i = 0; i < sayi; i++) { - print(metin); - } -} - -void islem2() {} diff --git a/lib/main.dart b/lib/main.dart index 5fbecae..0e13a75 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -1,16 +1,8 @@ import 'package:flutter/material.dart'; -import 'dosya.dart'; - // Fonksiyon tanımlamak void main() { // Fonksiyon çağırmak - print("ilk işlem başarılı olarak çalıştırıldı."); - islem(selamlamaMetni, sayi); - - String name = "Serbay"; - - bool isDebug = false; runApp(const MyApp()); } @@ -20,12 +12,8 @@ class MyApp extends StatelessWidget { @override Widget build(BuildContext context) { - String name = "Serbay"; - - bool isDebug = false; - return MaterialApp( - debugShowCheckedModeBanner: isDebug, + debugShowCheckedModeBanner: false, home: Scaffold( appBar: AppBar( title: const Text("Home"), @@ -49,154 +37,192 @@ class MyApp extends StatelessWidget { ), ], ), - body: Column( - children: [ - const SizedBox(height: 24), - const Padding( - padding: EdgeInsets.all(16.0), - child: TextField( - decoration: InputDecoration( - labelText: "Search Anything...", - prefixIcon: Icon(Icons.search), - border: OutlineInputBorder( - borderRadius: BorderRadius.all(Radius.circular(8)), - borderSide: BorderSide( - color: Color(0xFFD1D5DB), - width: 1, + body: SingleChildScrollView( + scrollDirection: Axis.vertical, + child: Column( + children: [ + const SizedBox(height: 24), + const Padding( + padding: EdgeInsets.all(16.0), + child: TextField( + decoration: InputDecoration( + labelText: "Search Anything...", + prefixIcon: Icon(Icons.search), + border: OutlineInputBorder( + borderRadius: BorderRadius.all(Radius.circular(8)), + borderSide: BorderSide( + color: Color(0xFFD1D5DB), + width: 1, + ), ), ), ), ), - ), - const Padding( - padding: EdgeInsets.symmetric(horizontal: 16.0), - child: Row( - children: [ - Text( - 'Categories', - style: TextStyle( - color: Color(0xFF1F2937), - fontSize: 14, - fontFamily: 'Inter', - fontWeight: FontWeight.w600, - height: 0.11, - letterSpacing: 0.07, - ), - ), - Spacer(), - Text( - 'View All ->', - textAlign: TextAlign.right, - style: TextStyle( - color: Color(0xFF6B7280), - fontSize: 12, - fontFamily: 'Inter', - fontWeight: FontWeight.w400, - height: 0.12, + const Padding( + padding: EdgeInsets.symmetric(horizontal: 16.0), + child: Row( + children: [ + Text( + 'Categories', + style: TextStyle( + color: Color(0xFF1F2937), + fontSize: 14, + fontFamily: 'Inter', + fontWeight: FontWeight.w600, + height: 0.11, + letterSpacing: 0.07, + ), ), - ) - ], + Spacer(), + Text( + 'View All ->', + textAlign: TextAlign.right, + style: TextStyle( + color: Color(0xFF6B7280), + fontSize: 12, + fontFamily: 'Inter', + fontWeight: FontWeight.w400, + height: 0.12, + ), + ) + ], + ), ), - ), - const SizedBox(height: 16), - SingleChildScrollView( - scrollDirection: Axis.horizontal, - child: Row( + const SizedBox(height: 16), + SingleChildScrollView( + scrollDirection: Axis.horizontal, + child: Row( + children: [ + + Image.asset('varliklar/categoriescontainer.png'), + ], + ), + ), + SizedBox(height: 25, width: 100,), + + Row(crossAxisAlignment: CrossAxisAlignment.center, + mainAxisAlignment: MainAxisAlignment.center, + + children: [ + Image.asset('varliklar/banner.png'), + + + + ], + ), + SizedBox(height: 25, width: 100,), + Row(crossAxisAlignment: CrossAxisAlignment.center, + mainAxisAlignment: MainAxisAlignment.center, + children: [ - for (int i = 0; i < 10; i++) - Column( - children: [ - if (i % 2 == 0) - Image.asset('varliklar/fashion.png') - else - Image.asset('varliklar/electronic.png'), - Text(i % 2 == 0 ? "Fashion" : "Electronic"), - ], + Image.asset('varliklar/viewpages.png'), + + + + ], + ), + SizedBox(height: 25, width: 100,), + const Padding( + padding: EdgeInsets.symmetric(horizontal: 16.0), + child: Row( + children: [ + Text( + 'Deal of the day', + style: TextStyle( + color: Color(0xFF1F2937), + fontSize: 14, + fontFamily: 'Inter', + fontWeight: FontWeight.w600, + height: 0.11, + letterSpacing: 0.07, + ), ), + Spacer(), + Text( + 'View All ->', + textAlign: TextAlign.right, + style: TextStyle( + color: Color(0xFF6B7280), + fontSize: 12, + fontFamily: 'Inter', + fontWeight: FontWeight.w400, + height: 0.12, + ), + ) + ], + ), + ), + SizedBox(height: 25, width: 100,), + Padding( + padding: const EdgeInsets.only(left: 16), + child: Row(crossAxisAlignment: CrossAxisAlignment.center, + mainAxisAlignment: MainAxisAlignment.start, + + children: [ + Image.asset('varliklar/timer.png'), + + + + ], + ), + ), + SizedBox(height: 25, width: 100,), + Row(crossAxisAlignment: CrossAxisAlignment.center, + mainAxisAlignment: MainAxisAlignment.center, + + children: [ + Image.asset('varliklar/products.png', + ), + + + + ], ), - ), - Text( - 'Hello, $name! How are you?', - ), - Text( - 'Hello, $name! How are you?', - ), - Text( - 'Hello, $name! How are you?', - ), - ], - ), - drawer: const Drawer(), - ), - ); - } -} + SizedBox(height: 25, width: 100,), + Row(crossAxisAlignment: CrossAxisAlignment.center, + mainAxisAlignment: MainAxisAlignment.center, -// Veri tipleri -// Değişken tanımlamak -String selamlamaMetni = 'Merhaba Arkadaşlar!'; + children: [ + Image.asset('varliklar/hotsellingfootwear.png'), -int sayi = 5; -String isim = "Serbay"; -String soyisim = "Özkan"; -int yas = 22; -double kilo = 70; + ], + ), -bool askerlikYaptiMi = false; + SizedBox(height: 25, width: 100,), + Row(crossAxisAlignment: CrossAxisAlignment.center, + mainAxisAlignment: MainAxisAlignment.center, -List okullaGecenYillar = [2013, 2014, 2015, 2016, 2017, 2018, 2019]; + children: [ + Image.asset('varliklar/recommendedforyou.png'), -Insan serbay = Insan("Serbay", "Özkan", 22, 70, false, - [2013, 2014, 2015, 2016, 2017, 2018, 2019]); -Ogrenci tuncay = Ogrenci( - "Tuncay", - "Özkan", - 22, - 70, - false, - [2013, 2014, 2015, 2016, 2017, 2018, 2019], - "123456", - "İstanbul Teknik Üniversitesi", -); -class Insan { - String isim; - String soyisim; - int yas; + ], + ), + SizedBox(height: 25, width: 100,), + Row(crossAxisAlignment: CrossAxisAlignment.center, + mainAxisAlignment: MainAxisAlignment.center, - double kilo; + children: [ + Image.asset('varliklar/buttomnav.png'), - bool askerlikYaptiMi; - List okullaGecenYillar; - // Oluşturucu fonksiyon (constructor) - Insan(this.isim, this.soyisim, this.yas, this.kilo, this.askerlikYaptiMi, - this.okullaGecenYillar) { - print("İnsan sınıfı oluşturuldu."); - } -} -class Ogrenci extends Insan { - String okulNumara; - String okulIsmi; - - Ogrenci( - super.isim, - super.soyisim, - super.yas, - super.kilo, - super.askerlikYaptiMi, - super.okullaGecenYillar, - this.okulNumara, - this.okulIsmi, - ) { - print("Öğrenci sınıfı oluşturuldu."); + ], + ), + + + ], + ), + ), + drawer: const Drawer(), + ), + ); } } diff --git a/test/widget_test.dart b/test/widget_test.dart deleted file mode 100644 index 1686dd1..0000000 --- a/test/widget_test.dart +++ /dev/null @@ -1,30 +0,0 @@ -// This is a basic Flutter widget test. -// -// To perform an interaction with a widget in your test, use the WidgetTester -// utility in the flutter_test package. For example, you can send tap and scroll -// gestures. You can also use WidgetTester to find child widgets in the widget -// tree, read text, and verify that the values of widget properties are correct. - -import 'package:bee_store/main.dart'; -import 'package:flutter/material.dart'; -import 'package:flutter_test/flutter_test.dart'; - -void main() { - testWidgets('Counter increments smoke test', (WidgetTester tester) async { - // Build our app and trigger a frame. - await tester.pumpWidget(const MyApp()); - - // Verify that our counter starts at 0. - expect(find.text('0'), findsOneWidget); - expect(find.text('1'), findsNothing); - - // Tap the '+' icon and trigger a frame. - await tester.tap(find.byIcon(Icons.add)); - await tester.tap(find.byIcon(Icons.add)); - await tester.pump(); - - // Verify that our counter has incremented. - expect(find.text('0'), findsNothing); - expect(find.text('1'), findsOneWidget); - }); -} diff --git a/varliklar/banner.png b/varliklar/banner.png new file mode 100644 index 0000000..52a29b3 Binary files /dev/null and b/varliklar/banner.png differ diff --git a/varliklar/beauty.png b/varliklar/beauty.png new file mode 100644 index 0000000..f4df423 Binary files /dev/null and b/varliklar/beauty.png differ diff --git a/varliklar/buttomnav.png b/varliklar/buttomnav.png new file mode 100644 index 0000000..97bddcc Binary files /dev/null and b/varliklar/buttomnav.png differ diff --git a/varliklar/categoriescontainer.png b/varliklar/categoriescontainer.png new file mode 100644 index 0000000..de3c453 Binary files /dev/null and b/varliklar/categoriescontainer.png differ diff --git a/varliklar/electronic.png b/varliklar/electronic.png deleted file mode 100644 index 08a89b7..0000000 Binary files a/varliklar/electronic.png and /dev/null differ diff --git a/varliklar/fashion.png b/varliklar/fashion.png deleted file mode 100644 index c7ab533..0000000 Binary files a/varliklar/fashion.png and /dev/null differ diff --git a/varliklar/hotsellingfootwear.png b/varliklar/hotsellingfootwear.png new file mode 100644 index 0000000..20c722d Binary files /dev/null and b/varliklar/hotsellingfootwear.png differ diff --git a/varliklar/products.png b/varliklar/products.png new file mode 100644 index 0000000..c252fd1 Binary files /dev/null and b/varliklar/products.png differ diff --git a/varliklar/products1-5.png b/varliklar/products1-5.png new file mode 100644 index 0000000..4e59aeb Binary files /dev/null and b/varliklar/products1-5.png differ diff --git a/varliklar/products2x.png b/varliklar/products2x.png new file mode 100644 index 0000000..6766b66 Binary files /dev/null and b/varliklar/products2x.png differ diff --git a/varliklar/recommendedforyou.png b/varliklar/recommendedforyou.png new file mode 100644 index 0000000..00524a1 Binary files /dev/null and b/varliklar/recommendedforyou.png differ diff --git a/varliklar/timer.png b/varliklar/timer.png new file mode 100644 index 0000000..36074d0 Binary files /dev/null and b/varliklar/timer.png differ diff --git a/varliklar/viewpages.png b/varliklar/viewpages.png new file mode 100644 index 0000000..e4e851a Binary files /dev/null and b/varliklar/viewpages.png differ