You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
60 lines
2.0 KiB
60 lines
2.0 KiB
import 'package:dating_touchme_app/components/page_appbar.dart';
|
|
import 'package:dating_touchme_app/controller/mine/edit_info_controller.dart';
|
|
import 'package:flutter/material.dart';
|
|
import 'package:get/get.dart';
|
|
import 'package:tdesign_flutter/tdesign_flutter.dart';
|
|
|
|
class SignaturePage extends StatelessWidget {
|
|
const SignaturePage({super.key});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return GetX<EditInfoController>(
|
|
init: EditInfoController(),
|
|
builder: (controller) {
|
|
return Scaffold(
|
|
appBar: PageAppbar(title: "交友心声",),
|
|
body: Column(
|
|
children: [
|
|
TDTextarea(
|
|
controller: controller.messageController.value,
|
|
hintText: '请输入交友心声',
|
|
maxLines: 5,
|
|
minLines: 5,
|
|
maxLength: 80,
|
|
indicator: true,
|
|
layout: TDTextareaLayout.vertical,
|
|
bordered: true,
|
|
onChanged: (value) {
|
|
controller.message.value = value;
|
|
},
|
|
),
|
|
const SizedBox(height: 48),
|
|
TDButton(
|
|
text: '保存',
|
|
width: MediaQuery.of(context).size.width - 50,
|
|
size: TDButtonSize.large,
|
|
type: TDButtonType.fill,
|
|
shape: TDButtonShape.round,
|
|
style: TDButtonStyle(
|
|
textColor: Colors.white,
|
|
backgroundColor: Color(0xFF7562F9),
|
|
),
|
|
activeStyle: TDButtonStyle(
|
|
textColor: Colors.white,
|
|
backgroundColor: Color(0xC37562F9),
|
|
),
|
|
onTap: (){
|
|
controller.savaDescribeInfo();
|
|
},
|
|
),
|
|
],
|
|
),
|
|
);
|
|
},
|
|
);
|
|
}
|
|
}
|
|
|
|
|
|
|