import 'package:fikoyt_ui/fikoyt_ui.dart'; import 'package:flutter/material.dart'; import 'package:flutter/widgets.dart'; class HeaderWidget extends StatelessWidget { HeaderWidget({super.key, this.ovalResimUrl}); String? ovalResimUrl = ""; @override Widget build(BuildContext context) { return Column( children: [ const SizedBox(height: kToolbarHeight), Obx( () => FikoytOvalResim( resimUrl: ovalResimUrl ?? "🏠", tema: FikoYTOvalResimTheme(borderColor: Colors.blue, radius: 48), onPressed: () async { FilePickerResult? result = await FilePicker.platform.pickFiles( allowMultiple: false, type: FileType.image, lockParentWindow: true, ); if (result != null) { File storeImage = File(result.files.first.path!); // use getApplicationDocumentsDirectory() to get a directory inside the app finansServis?.aktifKullanici.value?.profilResmiUrl = storeImage.absolute.path; Isar? isar = finansServis?.isar; isar?.writeTxn(() async { isar.kullanicis.put(finansServis!.aktifKullanici.value!); }); finansServis?.aktifKullanici.refresh(); } else { // profilResmi.value = null; } }, ), ), FikoYTButton( text: finansServis?.aktifKullanici.value?.ismi ?? "Ana Sayfa", tema: FikoYTButtonTheme(textColor: Colors.black, fontWeight: FontWeight.w700, fontSize: 18), ), FikoYTButton( text: "Sisteminizde Kayıtlı Verilerinizin Yönetim Ve Gözetim Merkezi.", tema: FikoYTButtonTheme( textColor: Colors.black38, fontWeight: FontWeight.normal, fontSize: 12, textAlign: TextAlign.center, ), ), ], ); } }