import 'package:fikoyt_ui/fikoyt_ui.dart'; import 'package:fikoyt_ui/ui/fikoyt_card.dart'; import 'package:fikoyt_ui/ui/yazi_kutulari/yazi_kutulari.dart'; import 'package:flutter/material.dart'; import 'package:flutter/widgets.dart'; class FormBirimEkleWidget extends StatelessWidget { const FormBirimEkleWidget({ super.key }); @override Widget build(BuildContext context){ return FikoYTCard( theme: (Theme.of(context).extension() ?? FikoYTCardTheme()).copyWith( boxConstraints: BoxConstraints(maxWidth: 300), ), children: [ Center(child: Text('💸', style: TextStyle(fontSize: 54))), Center( child: FikoYTButton( text: 'Yeni Para Birimi', tema: Theme.of(context).extension()?.copyWith( textAlign: TextAlign.center, textStrokeColor: Colors.transparent, textColor: Theme.of(context).extension()?.infoTextColor, // textShadow: Theme.of(context).extension()?.textShadow, ), ), ), Divider(height: 4), Obx( () => Center( child: Column( mainAxisAlignment: MainAxisAlignment.center, crossAxisAlignment: CrossAxisAlignment.center, spacing: 5, children: [ FikoYaziKutusu( baslik: "Para İsmi", simgeSol: const Text("✏️", style: TextStyle(fontSize: 14)), yaziBoyutu: 12.0, radius: 5.0, degeri: logic?.kayit.value?.ismi, degisti: (value) { logic?.kayit.value?.ismi = value; }, ), FikoYaziKutusu( baslik: "Kod", simgeSol: const Text("🏷️", style: TextStyle(fontSize: 14)), yaziBoyutu: 12.0, radius: 5.0, degeri: logic?.kayit.value?.kod, degisti: (value) { logic?.kayit.value?.kod = value; }, ), FikoYaziKutusu( baslik: "Sembol", simgeSol: const Text("⭐", style: TextStyle(fontSize: 14)), yaziBoyutu: 12.0, radius: 5.0, degeri: logic?.kayit.value?.sembol, degisti: (value) { logic?.kayit.value?.sembol = value; }, ), FikoYaziKutusu( baslik: "Oran", simgeSol: const Text("💯", style: TextStyle(fontSize: 14)), yaziBoyutu: 12.0, radius: 5.0, degeri: logic?.kayit.value?.oran.toString(), degisti: (value) { logic?.kayit.value?.oran = double.tryParse(value) ?? 1; }, ), FikoYaziKutusu( baslik: "Ters Oran", simgeSol: const Text("🔁", style: TextStyle(fontSize: 14)), yaziBoyutu: 12.0, radius: 5.0, degeri: logic?.kayit.value?.tersOran.toString(), degisti: (value) { logic?.kayit.value?.tersOran = double.tryParse(value) ?? 1; }, ), Row( children: [ Spacer(), FikoYTButton( text: "➕ Ekle", tema: FikoYTButtonTheme( textColor: Colors.white, backgroundColor: Colors.blue, // fontWeight: FontWeight.w700, edgePadding: EdgeInsets.all(3), borderColor: Colors.blueAccent, elevation: 3, fontSize: 12, ), onPressed: () async { logic?.kaydet(); }, ), ], ), ], ), ), ), ], ); } }