import 'package:flutter/material.dart'; import 'product_selection_page.dart'; import '../widgets/glass_dialog.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( body: Container( width: double.infinity, height: double.infinity, decoration: const BoxDecoration( // CSS: linear-gradient(135deg, #FEF5EC 0%, #FDF2F8 100%); gradient: LinearGradient( begin: Alignment.topLeft, end: Alignment.bottomRight, colors: [Color(0xFFFEF5EC), Color(0xFFFDF2F8)], ), ), child: 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: