import 'package:flutter/material.dart'; import 'package:flutter_sms/flutter_sms.dart'; import 'package:project_telephony/base/base_style.dart'; import 'package:project_telephony/ui/TextMe/text_template.dart'; import 'package:project_telephony/ui/widget/plone_bottom.dart'; import 'package:project_telephony/utils/headers.dart'; import 'package:project_telephony/utils/toast/cloud_toast.dart'; import 'package:velocity_x/velocity_x.dart'; import '../widget/plone_back_button.dart'; import 'address_book.dart'; class TextMePage extends StatefulWidget { const TextMePage({Key? key}) : super(key: key); @override _TextMePageState createState() => _TextMePageState(); } class _TextMePageState extends State { // String contentText = ""; // String phoneText = ""; String signatureText = ""; late TextEditingController _controller; late TextEditingController _phoneController; List list = []; @override void initState() { _controller = TextEditingController(); _phoneController = TextEditingController(); _controller.text = ""; _phoneController.text = ""; super.initState(); } @override Widget build(BuildContext context) { return Scaffold( resizeToAvoidBottomInset: false, appBar: AppBar( elevation: 0, title: Text( "群发短信", style: TextStyle( fontSize: BaseStyle.fontSize34, color: BaseStyle.color333333, fontWeight: FontWeight.bold), ), titleSpacing: 200.w, leading: const CloudBackButton( isSpecial: true, isSpecials: false, ), backgroundColor: kForeGroundColor), backgroundColor: Colors.white, body: ListView( children: [ _getBox('短信内容', "选择短信模版", () { Get.to(() => TextTemplate( callback: (String content) { _controller.text = content; }, )); }, "请输入短信内容...", _controller), 32.hb, _getBox('收信号码', "通讯录中选择", () { Get.to(() => AddressBook(number: (List content) { for(int i=0;i