Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TextFieldDecoration - prefixIcon changeColor #28228

Closed
DeRealMorgan opened this issue Feb 20, 2019 · 3 comments
Closed

TextFieldDecoration - prefixIcon changeColor #28228

DeRealMorgan opened this issue Feb 20, 2019 · 3 comments
Labels
f: material design flutter/packages/flutter/material repository. framework flutter/packages/flutter repository. See also f: labels.

Comments

@DeRealMorgan
Copy link

I cant find anything on how to change the color of a prefixIcon attached to a TextField.

Goal: The standard icon color is blue when a TextField is selected. How do I change this color ? It seems like there is no option for it.

@zoechi
Copy link
Contributor

zoechi commented Feb 21, 2019

Please consider asking support questions in one of the other channels listed at http://flutter.io/support .

@zoechi zoechi added framework flutter/packages/flutter repository. See also f: labels. f: material design flutter/packages/flutter/material repository. labels Feb 21, 2019
@zoechi zoechi added this to the Goals milestone Feb 21, 2019
@TahaTesser
Copy link
Member

Hi @DeRealMorgan

Code Sample

import 'package:flutter/material.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Material App',
      home: Scaffold(
        appBar: AppBar(
          title: Text('Material App Bar'),
        ),
        body: Center(
          child: TextField(
            obscureText: true,
            decoration: InputDecoration(
              border: OutlineInputBorder(),
              labelText: 'Contact',
              prefixIcon: Icon(Icons.contact_mail, color: Colors.orange),
            ),
          ),
        ),
      ),
    );
  }
}

Closing, as this isn't an issue with Flutter itself,
if you disagree please write in the comments and I will reopen it
Thank you

@github-actions
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 14, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
f: material design flutter/packages/flutter/material repository. framework flutter/packages/flutter repository. See also f: labels.
Projects
None yet
Development

No branches or pull requests

3 participants