Open berkeresvan opened 6 months ago
import 'package:flutter/material.dart';
void main() { runApp(const MyApp()); }
class MyApp extends StatelessWidget { const MyApp({super.key});
@override Widget build(BuildContext context) { return MaterialApp( title: 'Flutter Demo', theme: ThemeData( colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple), useMaterial3: true, ), home: const MyHomePage(title: 'Flutter Demo Home Page'), ); } }
class MyHomePage extends StatefulWidget { const MyHomePage({super.key, required this.title});
final String title;
@override State createState() => _MyHomePageState(); }
class _MyHomePageState extends State { @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar( backgroundColor: Theme.of(context).colorScheme.inversePrimary, title: Text(widget.title), ), body: ListView( children: [ ListTile( leading: Icon(Icons.wb_sunny), title: Text("Güneş"), subtitle: Text("Güneş Alt Başlık"), trailing: Icon(Icons.arrow_right), onTap: () { print("güneş tıklandı"); }, ), ListTile( leading: Icon(Icons.brightness_2), title: Text("Ay"), subtitle: Text("Ay Alt Başlık"), trailing: Icon(Icons.arrow_right), onTap: () { print("ay tıklandı"); }, ), ListTile( leading: Icon(Icons.star), title: Text("Star"), subtitle: Text("Star Alt Başlık"), trailing: Icon(Icons.arrow_right), onTap: () { print("Star tıklandı"); }, ), GestureDetector( onTap: () { print("kart tıklandı"); }, child: SizedBox( height: 50, child: Row( children: [ Text("Card Tasarım"), Spacer(), Icon(Icons.more_vert) ], ), ), ), Container( height: 50, color: Colors.red, child: Text("Merhaba"), ) ], )); } }
import 'package:flutter/material.dart';
void main() { runApp(const MyApp()); }
class MyApp extends StatelessWidget { const MyApp({super.key});
@override Widget build(BuildContext context) { return MaterialApp( title: 'Flutter Demo', theme: ThemeData( colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple), useMaterial3: true, ), home: const MyHomePage(title: 'Flutter Demo Home Page'), ); } }
class MyHomePage extends StatefulWidget { const MyHomePage({super.key, required this.title});
final String title;
@override State createState() => _MyHomePageState();
}
class _MyHomePageState extends State {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
backgroundColor: Theme.of(context).colorScheme.inversePrimary,
title: Text(widget.title),
),
body: ListView(
children: [
ListTile(
leading: Icon(Icons.wb_sunny),
title: Text("Güneş"),
subtitle: Text("Güneş Alt Başlık"),
trailing: Icon(Icons.arrow_right),
onTap: () {
print("güneş tıklandı");
},
),
ListTile(
leading: Icon(Icons.brightness_2),
title: Text("Ay"),
subtitle: Text("Ay Alt Başlık"),
trailing: Icon(Icons.arrow_right),
onTap: () {
print("ay tıklandı");
},
),
ListTile(
leading: Icon(Icons.star),
title: Text("Star"),
subtitle: Text("Star Alt Başlık"),
trailing: Icon(Icons.arrow_right),
onTap: () {
print("Star tıklandı");
},
),
GestureDetector(
onTap: () {
print("kart tıklandı");
},
child: SizedBox(
height: 50,
child: Row(
children: [
Text("Card Tasarım"),
Spacer(),
Icon(Icons.more_vert)
],
),
),
),
Container(
height: 50,
color: Colors.red,
child: Text("Merhaba"),
)
],
));
}
}