import 'package:flutter/material.dart'; import 'package:fikoyt_sistem/apps/uyar/uye/sol_menu.dart'; import 'package:fikoyt_sistem/main.dart'; import 'package:fikoyt_ui/fikoyt_ui.dart'; import 'package:fikoyt_ui/ui/fikoyt_card.dart'; class Uye extends StatelessWidget { Uye({Key? key, this.child}) : super(key: key); Widget? child; @override Widget build(BuildContext context) { return Row( crossAxisAlignment: CrossAxisAlignment.start, // Yukarı yaslama mainAxisAlignment: MainAxisAlignment.start, children: [ // Sol: sabit genişlikte logo // Column( // children: [ SolMenu( solMenuUst: Padding( padding: const EdgeInsets.all(8.0), child: Column( children: [ Image.asset("packages/fikoyt_ui/assets/core/icons/fikoyt-4.png", height: 32), Align( alignment: Alignment.centerRight, child: Text( "Özel Üye", style: TextStyle(color: Colors.black45, fontSize: 12, fontWeight: FontWeight.bold), ), ), ], ), ), solMenu: Column( children: [ SolMenuItem(icon: Icons.dashboard, label: 'Ana pencere', selected: true, onTap: () {}), SolMenuItem(icon: Icons.shopping_cart_checkout, label: 'Stoklar', selected: false, onTap: () {}), SolMenuItem(icon: Icons.person, label: 'Pdks', selected: false, onTap: () {}), SolMenuItem(icon: Icons.polymer_rounded, label: 'Projeler', selected: false, onTap: () {}), ], ), solMenuAlt: Padding( padding: const EdgeInsets.all(8.0), child: Row( children: [ FikoYTButton( text: "🎧", tema: FikoYTButtonTheme(fontSize: 16, edgePadding: EdgeInsets.all(5), radius: 5), onPressed: () {}, ), Spacer(), FikoYTButton( text: "⚙️", tema: FikoYTButtonTheme(fontSize: 16, edgePadding: EdgeInsets.all(5), radius: 5), onPressed: () {}, ), ], ), ), ), // ], // ), // Sağ: kalan tüm alan, komple boyalı Expanded( child: Container( alignment: Alignment.topLeft, // Yukarı sola hizalama color: Colors.white70, // Sağ tarafın arka planı // padding: const EdgeInsets.all(0), child: SingleChildScrollView( physics: BouncingScrollPhysics(), child: Container(width: double.infinity, child: child ?? SizedBox.shrink()), ), ), ), ], ); } }