I am a beginner of using ionic 2, I am faced the issue to change the color of back button text color, i have added a css like below:
ion-header ion-icon.back-button-icon.icon{
color: #17B97D;
}
But only the arrow changed to the color I wanted the text "Back" not change.
Does anyone know how to change it? Thanks a lot.
You could add that element to your css rule, like this:
ion-header ion-icon.back-button-icon.icon,
ion-header span.back-button-text.back-button-text-ios {
color: #17B97D;
}
Related
I'm would like to change the cursor color in a TextFormField.
I don't find the Property.
To know I'm on a Flutter web app and not mobile.
From this answer:
You can change specific textfield cursor color for your solution:
TextField(cursorColor: Colors.white)
but if you want to change it completely in your project then you can
check this here
I have a Searchbar and due to my app theming, the text inside becomes hard to read when its selected. I would like to know if there is a way to set a different text color when it's selected.
Thanks in advance!
Flutter does not support changing the selected text color via the theme declaration in the main widget, only can change background color. You must use the SelectableText in each input style property, like as:
SelectableText(
'Example text',
style: TextStyle(color: Colors.red), // Yout text color on selected
)
Reference: https://github.com/flutter/flutter/issues/99231
Id like to create similar animation effect with press button in flutter like this
I tried to find some similar widget on https://pub.dev/ without success. Any Idea how to create it?
Use materialappbutton to get hover animation effect.
The only thing I can think of is working with a gradient which you adapt in a stateful way on hover.
See the below answer for how to make a gradient border:
Outlined transparent button with gradient border in flutter
I am using SliverAppBar widget with some background image behind it. Since the image I will load will be dynamic, sometimes it can have light colors and can cause the back button (or any other action button) to be hardly visible.
As you can see in the screenshot below, I gave a little shadow to the app bar title using TextStyle & Shadow widgets, so it is much more visible than the back button.
You can try use "elevation" here is the Flutter link for more clarification: https://www.google.com/url?sa=t&source=web&rct=j&url=https://api.flutter.dev/flutter/material/SliverAppBar/elevation.html&ved=2ahUKEwiEpfiIn4TwAhWUH7cAHY9ECIwQFjACegQIBRAC&usg=AOvVaw0wCdyaVv3EA8ulVXXvaVMu
How do I make BottomSheet like this in Flutter? Specifically the boldge where arrow is?
It can be solved by setting the background color of showModalBottomSheet, transparent
backgroundColor: Colors.transparent,and use a cliper or rounded shape in it.