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

I need to change value color #72

Closed
Osmancn opened this issue Feb 12, 2021 · 2 comments
Closed

I need to change value color #72

Osmancn opened this issue Feb 12, 2021 · 2 comments

Comments

@Osmancn
Copy link

Osmancn commented Feb 12, 2021

Widget get _valueWidget {
    return Text(
      isLoading ? loadingText : value,
      style: const TextStyle(color: Colors.grey),
      overflow: TextOverflow.ellipsis,
      maxLines: 1,
    );
  }

why doesnt optional color

 Widget get _valueWidget {
    return Text(
      isLoading ? loadingText : value,
      style:  TextStyle(color: ListTileTheme.of(context).textColor),
      overflow: TextOverflow.ellipsis,
      maxLines: 1,
    );
  }
@muskara
Copy link

muskara commented Mar 27, 2021

There is no built-in method or property that you can change the color of value.
The only way is to do your own design with tileBuilder.

tileBuilder: (context, state) {
  return Container(
    padding: EdgeInsets.symmetric(horizontal: 10, vertical: 6),
    child: InkWell(
      onTap: () => state.showModal(),
      child: Row(
        children: [
          Expanded(
            child: Column(
              crossAxisAlignment: CrossAxisAlignment.start,
              children: [
                Text(state.title, style: TextStyle(fontSize: 16, color: Colors.white)),
                Text(state.valueObject.map((e) => e.title).join(', '), style: TextStyle(fontSize: 12, color: Colors.white70))
              ],
            ),
          ),
          Icon(Icons.arrow_drop_down, size: 30, color: Colors.white70,)
        ],
      ),
    )
  );
},

@Osmancn Osmancn closed this as completed Jun 11, 2021
@vasilich6107
Copy link

I released https://pub.dev/packages/flutter_awesome_select with fixed null safety.
Could you check that everything works for you?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants