// import 'package:dating_touchme_app/components/page_appbar.dart'; // import 'package:dating_touchme_app/extension/ex_widget.dart'; // import 'package:dating_touchme_app/generated/assets.dart'; // import 'package:dating_touchme_app/pages/mine/blacklist_page.dart'; // import 'package:flutter/material.dart'; // import 'package:flutter_screenutil/flutter_screenutil.dart'; // import 'package:get/get.dart'; // import 'package:get/get_core/src/get_main.dart'; // import 'package:tdesign_flutter/tdesign_flutter.dart'; // // class SettingPage extends StatefulWidget { // const SettingPage({super.key}); // // @override // State createState() => _SettingPageState(); // } // // class _SettingPageState extends State { // // // bool blockUser = false; // // @override // Widget build(BuildContext context) { // return Scaffold( // backgroundColor: const Color.fromRGBO(250, 250, 250, 1), // appBar: PageAppbar(title: "设置"), // body: SingleChildScrollView( // child: Container( // padding: EdgeInsets.symmetric( // vertical: 15.w, // horizontal: 10.w // ), // child: Column( // children: [ // BlockItem( // children: [ // Item( // label: "后台播放", // child: TDSwitch( // isOn: blockUser, // trackOnColor: const Color.fromRGBO(117, 98, 249, 1), // onChanged: (bool e){ // print(e); // blockUser = e; // setState(() { // // }); // return e; // }, // ), // ), // LineItem(), // Item( // label: "语音/视频通话提示音", // child: TDSwitch( // isOn: blockUser, // trackOnColor: const Color.fromRGBO(117, 98, 249, 1), // onChanged: (bool e){ // print(e); // blockUser = e; // setState(() { // // }); // return e; // }, // ), // ), // ], // ), // BlockItem( // children: [ // Item( // label: "安全中心", // child: Icon( // Icons.keyboard_arrow_right, // size: 10.w, // color: const Color.fromRGBO(191, 191, 191, 1), // ), // ), // LineItem(), // Item( // label: "黑名单", // child: Icon( // Icons.keyboard_arrow_right, // size: 10.w, // color: const Color.fromRGBO(191, 191, 191, 1), // ), // ).onTap((){ // Get.to(() => BlacklistPage()); // }), // ], // ), // BlockItem( // children: [ // Item( // label: "隐私设置", // child: Icon( // Icons.keyboard_arrow_right, // size: 10.w, // color: const Color.fromRGBO(191, 191, 191, 1), // ), // ), // LineItem(), // Item( // label: "青少年模式", // child: Icon( // Icons.keyboard_arrow_right, // size: 10.w, // color: const Color.fromRGBO(191, 191, 191, 1), // ), // ), // ], // ), // BlockItem( // children: [ // Item( // label: "系统权限管理", // child: Icon( // Icons.keyboard_arrow_right, // size: 10.w, // color: const Color.fromRGBO(191, 191, 191, 1), // ), // ), // LineItem(), // Item( // label: "消息通知", // child: Icon( // Icons.keyboard_arrow_right, // size: 10.w, // color: const Color.fromRGBO(191, 191, 191, 1), // ), // ), // LineItem(), // Item( // label: "检查更新", // child: Row( // children: [ // Text( // "版本号 1.0.000", // style: TextStyle( // fontSize: 13.w, // color: const Color.fromRGBO(117, 98, 249, 1) // ), // ), // SizedBox(width: 10.w,), // Icon( // Icons.keyboard_arrow_right, // size: 10.w, // color: const Color.fromRGBO(191, 191, 191, 1), // ) // ], // ), // ).onTap((){ // // }), // ], // ), // ], // ), // ), // ), // ); // } // } // // class BlockItem extends StatefulWidget { // final List children; // const BlockItem({super.key, required this.children}); // // @override // State createState() => _BlockItemState(); // } // // class _BlockItemState extends State { // @override // Widget build(BuildContext context) { // return Container( // padding: EdgeInsets.symmetric( // horizontal: 14.w // ), // margin: EdgeInsets.only( // bottom: 10.w // ), // decoration: BoxDecoration( // borderRadius: BorderRadius.all(Radius.circular(9.w)), // color: Colors.white // ), // child: Column( // children: widget.children, // ), // ); // } // } // // class Item extends StatefulWidget { // final String label; // final Widget child; // const Item({super.key, required this.label, required this.child}); // // @override // State createState() => _ItemState(); // } // // class _ItemState extends State { // @override // Widget build(BuildContext context) { // return SizedBox( // height: 54.w, // child: Row( // mainAxisAlignment: MainAxisAlignment.spaceBetween, // children: [ // Text( // widget.label, // style: TextStyle( // fontSize: 13.w, // fontWeight: FontWeight.w500 // ), // ), // widget.child // ], // ), // ); // } // } // // class LineItem extends StatelessWidget { // const LineItem({super.key}); // // @override // Widget build(BuildContext context) { // return Container( // width: 320.w, // height: 2.w, // color: const Color.fromRGBO(245, 245, 245, 1), // ); // } // }