Convert hintText to labelText for TextField
This commit is contained in:
parent
8b96e57b81
commit
cd6e5c5747
4 changed files with 4 additions and 4 deletions
|
|
@ -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',
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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)),
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue