Open berkeresvan opened 7 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: sayfa2(), ); } }
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("Stateful Wiaaaaaaaaaaaaadget"), ), body: Center( child: Column( mainAxisAlignment: MainAxisAlignment.center, children: [Text("merhaba")], ), )); } }
class sayfa2 extends StatefulWidget { const sayfa2({super.key});
@override State createState() => _sayfa2State(); }
class _sayfa2State extends State { @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar( backgroundColor: Theme.of(context).colorScheme.inversePrimary, title: Text("Stateful Widget"), ), body: Center( child: Column( mainAxisAlignment: MainAxisAlignment.center, children: [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: sayfa2(), ); } }
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("Stateful Wiaaaaaaaaaaaaadget"),
),
body: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [Text("merhaba")],
),
));
}
}
class sayfa2 extends StatefulWidget { const sayfa2({super.key});
@override State createState() => _sayfa2State();
}
class _sayfa2State extends State {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
backgroundColor: Theme.of(context).colorScheme.inversePrimary,
title: Text("Stateful Widget"),
),
body: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [Text("merhaba")],
),
));
}
}