Open berkeresvan opened 7 months ago
import 'package:flutter/material.dart'; import 'package:sayfagecisuygulamasi/kisiler.dart'; import 'package:sayfagecisuygulamasi/sayfaaB.dart';
// ignore: must_be_immutable class SayfaA extends StatefulWidget { kisiler kisi; SayfaA( {required this.kisi});
@override
State
class _SayfaAState extends State
import 'package:flutter/material.dart'; import 'package:sayfagecisuygulamasi/main.dart';
class SayfaB extends StatefulWidget { const SayfaB({super.key});
@override
State
Future
class _SayfaBState extends State
class kisiler { String isim; int yas; double boy; bool bekarMi; kisiler( {required this.isim, required this.yas, required this.boy, required this.bekarMi});
}
// ignore_for_file: public_member_api_docs, sort_constructors_first import 'package:flutter/material.dart'; import 'package:sayfagecisuygulamasi/kisiler.dart';
import 'package:sayfagecisuygulamasi/sayfaA.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: Anasayfa(), ); } }
class Anasayfa extends StatefulWidget { @override State createState() => _AnasayfaState();
}
class _AnasayfaState extends State {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
backgroundColor: Theme.of(context).colorScheme.inversePrimary,
title: Text("Anaasayfa"),
),
body: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
ElevatedButton(
onPressed: () {
// ignore: unused_local_variable
var kisi =
kisiler(isim: "ahmet", yas: 18, boy: 1.78, bekarMi: true);
} }