import 'package:fikoyt_mesaici/apps/mesaici/model/model_hareketler.dart'; import 'package:fikoyt_mesaici/core/Extensions/fiko_double_ext.dart'; import 'package:fikoyt_mesaici/core/widgets/fiko_ui/fiko_button/fiko_button.dart'; import 'package:flutter/material.dart'; import 'package:get/get.dart'; class NetMaasTablosu extends StatefulWidget { NetMaasTablosu({super.key, required this.kayit}); final Rx? kayit; @override State createState() => _NetMaasTablosuState(); } class _NetMaasTablosuState extends State { @override void initState() { super.initState(); } @override void dispose() { super.dispose(); } @override Widget build(BuildContext context) { return Column( children: [ Row( children: [ Expanded( child: Container( alignment: Alignment.center, decoration: BoxDecoration( color: Colors.blue.shade400, ), child: const Text( "Net Maaş", style: TextStyle(color: Colors.white, fontWeight: FontWeight.bold), ), ), ), Expanded( child: Container( alignment: Alignment.center, decoration: BoxDecoration( color: Colors.blue.shade400, ), child: const Text( "Net F. Mesai", style: TextStyle(color: Colors.white, fontWeight: FontWeight.bold), ), ), ), Expanded( child: Container( alignment: Alignment.center, decoration: BoxDecoration( color: Colors.blue.shade400, ), child: const Text( "Net Ek Ücret", style: TextStyle(color: Colors.white, fontWeight: FontWeight.bold), ), ), ), ], ), Row( mainAxisAlignment: MainAxisAlignment.spaceEvenly, children: [ Expanded( child: Obx( () => AnimatedNumberFikoYTButton1( text: widget.kayit?.value?.calismaKarti?.odenecekUcret, textBuilder: (tweenValue) => tweenValue.toParaBirimi(), textSize: 12, edgePadding: const EdgeInsets.symmetric(vertical: 2.0), textColor: Colors.red, textStrokeColor: Colors.transparent, radius: 0, backColor: Colors.grey.shade200, onPressed: () {}, ), ), ), Expanded( child: Obx( () => AnimatedNumberFikoYTButton1( text: widget.kayit?.value?.calismaKarti?.netFazlaMesai, textBuilder: (tweenValue) => tweenValue.toParaBirimi(), textSize: 12, edgePadding: const EdgeInsets.symmetric(vertical: 2.0), textColor: Colors.red, textStrokeColor: Colors.transparent, radius: 0, backColor: Colors.grey.shade200, onPressed: () {}, ), ), ), Expanded( child: Obx( () => AnimatedNumberFikoYTButton1( text: widget.kayit?.value?.calismaKarti?.netEkUcretler, textBuilder: (tweenValue) => tweenValue.toParaBirimi(), textSize: 12, edgePadding: const EdgeInsets.symmetric(vertical: 2.0), textColor: Colors.red, textStrokeColor: Colors.transparent, radius: 0, backColor: Colors.grey.shade200, onPressed: () {}, ), ), ), ], ), /** */ Obx( () => Row( mainAxisAlignment: MainAxisAlignment.spaceEvenly, children: [ Expanded( child: AnimatedNumberFikoYTButton1( text: widget.kayit?.value?.calismaKarti?.odenecekUcret, textBuilder: (tweenValue) => "Ödenecek Tutar -> ${tweenValue.toParaBirimi()}", textSize: 12, edgePadding: const EdgeInsets.symmetric(vertical: 2.0), textColor: Colors.blueAccent, textStrokeColor: Colors.transparent, radius: 0, backColor: Colors.yellow.shade100, onPressed: () {}, ), ), ], ), ), ], ); } }