Convert hintText to labelText for TextField

This commit is contained in:
tommyxchow 2022-04-06 00:40:11 -04:00
parent 8b96e57b81
commit cd6e5c5747
4 changed files with 4 additions and 4 deletions

View file

@ -71,7 +71,7 @@ class _ChattersListState extends State<ChattersList> {
onChanged: (text) => chatDetailStore.filterText = text,
decoration: InputDecoration(
isDense: true,
hintText: 'Filter',
labelText: 'Filter',
contentPadding: const EdgeInsets.all(10.0),
suffixIcon: IconButton(
tooltip: 'Clear Filter',

View file

@ -95,7 +95,7 @@ class ChatBottomBar extends StatelessWidget {
border: const OutlineInputBorder(
borderRadius: BorderRadius.all(Radius.circular(15.0)),
),
hintText: chatStore.auth.isLoggedIn ? 'Send a message' : 'Log in to chat',
labelText: chatStore.auth.isLoggedIn ? 'Send a message' : 'Log in to chat',
),
controller: chatStore.textController,
onSubmitted: chatStore.sendMessage,

View file

@ -37,7 +37,7 @@ class _SearchState extends State<Search> {
autocorrect: false,
decoration: InputDecoration(
isDense: true,
hintText: 'Find a channel or category',
labelText: 'Find a channel or category',
contentPadding: const EdgeInsets.all(10.0),
border: const OutlineInputBorder(
borderRadius: BorderRadius.all(Radius.circular(15.0)),

View file

@ -124,7 +124,7 @@ class ProfileCard extends StatelessWidget {
child: TextField(
textAlign: TextAlign.center,
decoration: const InputDecoration(
hintText: 'Token',
labelText: 'Token',
),
onSubmitted: (token) {
authStore.login(customToken: token);