import 'package:flutter/material.dart'; import 'package:go_router/go_router.dart'; import 'package:together_mobile/common/constants.dart'; class SearchNewScreen extends StatelessWidget { const SearchNewScreen({super.key}); @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar( centerTitle: true, title: const Text('搜索'), ), body: Column( mainAxisAlignment: MainAxisAlignment.center, children: [ Container( alignment: Alignment.centerLeft, width: 350, height: 50, child: TextField( textAlignVertical: TextAlignVertical.center, decoration: InputDecoration( // contentPadding: EdgeInsets.only(left: 5), contentPadding: const EdgeInsets.symmetric(horizontal: 10), hintText: '用户名/邮箱/群聊号', prefixIcon: const Icon(Icons.search), border: OutlineInputBorder( borderRadius: BorderRadius.circular(20), ), ), ), ), const SizedBox( height: 40, ), Row( children: [ const Spacer(), FilledButton( onPressed: () {}, style: FilledButton.styleFrom( backgroundColor: kSecondaryColor, ), child: const Text('搜索群聊'), ), const Spacer(), FilledButton( onPressed: () => context.push('/contact/add/friend'), child: const Text('搜索联系人'), ), const Spacer(), ], ) ], ), ); } }