import 'package:flutter/material.dart'; import 'package:go_router/go_router.dart'; import 'package:google_fonts/google_fonts.dart'; import 'product_selection_page.dart'; import '../widgets/glass_dialog.dart'; import '../widgets/animated_gradient_background.dart'; class SettingsPage extends StatefulWidget { const SettingsPage({super.key}); @override State createState() => _SettingsPageState(); } class _SettingsPageState extends State { // State for mock data String _deviceName = '小毛球'; String _userName = '土豆'; double _volume = 60; double _brightness = 85; bool _allowInterrupt = true; @override Widget build(BuildContext context) { return Scaffold( backgroundColor: Colors.transparent, body: Stack( children: [ const AnimatedGradientBackground(), SafeArea( child: Column( children: [ // Header Padding( padding: const EdgeInsets.symmetric( horizontal: 20, vertical: 12, ), child: Row( mainAxisAlignment: MainAxisAlignment.spaceBetween, children: [ GestureDetector( onTap: () => Navigator.of(context).pop(), child: Container( width: 44, height: 44, decoration: BoxDecoration( // HTML icon-btn style: rgba(255, 255, 255, 0.25) but settings-header says transparent! // CSS .settings-header says: background: transparent !important; // And the button inside? HTML lines 885: