// ignore_for_file: non_constant_identifier_names, library_private_types_in_public_api import 'package:fikoyt_hmi_pano/apps/pages/screen_1/controller/screen.controller.dart'; import 'package:fikoyt_ui/fikoyt_ui.dart'; import 'package:fikoyt_ui/ui/yazi_kutulari/yazi_kutulari.dart'; import 'package:flutter/material.dart'; class AyarlarPage extends StatefulWidget { const AyarlarPage({super.key}); @override _AyarlarPageState createState() => _AyarlarPageState(); } class _AyarlarPageState extends State { late final Screen1Controller screenLogic; @override void initState() { screenLogic = Get.put(Screen1Controller()); super.initState(); } @override void dispose() { super.dispose(); } @override Widget build(BuildContext context) { return Scaffold( body: SingleChildScrollView( child: Padding( padding: const EdgeInsets.all(10.0), child: Column( crossAxisAlignment: CrossAxisAlignment.stretch, children: [ /** */ /** */ /** */ Row( mainAxisAlignment: MainAxisAlignment.center, children: [ FikoYTButton( text: "🏠", tema: Theme.of(context).extension()?.copyWith( fontSize: 24, textAlign: TextAlign.start, edgePadding: const EdgeInsets.symmetric(vertical: 3.0, horizontal: 3), textStrokeWidth: 0, textColor: Colors.black87, textStrokeColor: Colors.transparent, ), onPressed: () { context.vRouter.to("/screen-1/person-dash"); }, ), Expanded( child: Divider( indent: 10.0, endIndent: 10.0, thickness: 1, ), ), FikoYTButton( text: "Cihaz Ayarları", tema: FikoYTButtonTheme( fontSize: 24, textColor: Theme.of(context).extension()?.textColor?.withAlpha(200), textShadow: [ Shadow( blurRadius: 5, color: Theme.of(context).extension()?.shadowColor?.withAlpha(200) ?? Colors.white, ), ], textStrokeWidth: 0, ), ), Expanded( child: Divider( indent: 10.0, endIndent: 10.0, thickness: 1, ), ), ], ), /** */ /** */ /** */ Center( child: Container( constraints: BoxConstraints(maxWidth: 560), child: Column( children: [ Card( child: ListTile( leading: const Text( "🕒", style: TextStyle( fontSize: 24, ), ), title: const Text( 'Cihaz İsmi', style: TextStyle( fontWeight: FontWeight.w600, ), ), dense: true, subtitle: FikoYaziKutusu( maksGenislik: 640.0, baslik: "Mola İsmi", simgeSol: const Text( "👩🏻‍🤝‍👨🏽", style: TextStyle( fontSize: 16, ), ), radius: 5.0, degeri: screenLogic.deviceSettings.value?["cihaz_ismi"] ?? "", degisti: (value) { if (value.isNotEmpty) { screenLogic.deviceSettings.value?["cihaz_ismi"] = value; } else { screenLogic.deviceSettings.value?["cihaz_ismi"] = null; } mola.refresh(); }, ), // trailing: const Icon(Icons.chevron_right_sharp), isThreeLine: false, // splashColor: Colors.grey.withAlpha(100), // onTap: () { // context.vRouter.to("/mesaici/ayarlar/calisma-sureleri"); // }, ), ), ], ), ), ), ], ), ), ), ); } }