how do I debug the formatting of a flutter app? - flutter

The background to my problem is that I have an AppBar, and no matter what I try, I can't seem to change the text colour from black.
So, coming from a webdev background, I want to reach for the devconsole, click on the offending element and see the cascading styles that resulted in the text being black.
My question is, what is the Flutter equivalent of this debugging process?

Related

Screen scroll not starting from beginning - Flutter

I am helping contribute a code and am stuck on a scrolling bug in flutter.
The screen when opened is started from the Google Maps widget
like this
But when I hold the screen and scroll above then the top content is displayed like this
Now, I cannot interact with the top content since when I release the scroll hold it bounces back to start at the map.
I hope I made senseI cant attach a video here to describe it more accurately.
Here is the link for the respective file associated with the screen,you can download it to check out the code:
The mobile app UI code starts from line 876.
Any help would be appreciated.
I haven't executed your code because it depends on lot of your other files but from reading your code I think the problem is occurring because of extendBodyBehindAppBar of Scaffold. (Checkout line number 114 in given file). Removing this argument or setting it to false should solve the problem.
From the docs :
If true, and an appBar is specified, then the height of the body is
extended to include the height of the app bar and the top of the body
is aligned with the top of the app bar.
This is useful if the app bar's AppBar.backgroundColor is not
completely opaque.
This property is false by default. It must not be null.

Display Unobstrusive message on macOS using Swift

I need to display a text message on screen.
Currently I am doing this with a Text view on a transparent window, so the text is overlayed on the screen, perfectly.
The issue is that if am working on a text editor, or Excel, the popup shows up it blocks the text editor by an invisible rectangle around the text, i am unable to send mouse clicks or text keys to the window that i was working on.
I know there are ways to do it, some applications already do it, I just need to know how.
Take a look at this question. It is in Objective-C but the API details you need are there, you just need to do the equivalent in Swift. Whereas that answer draws a transparent red border you will draw your text transparent.

How can I adjust Flutter such that Fleksy recognizes colors and changes accordingly?

I'm making an app and I can't figure out what I need to change in order to make Fleksy recognize colors and change accordingly.
Fleksy is a keyboard app on devices that has a chameleon theme which changes according to the apps' color.
For instance, my app's main colors are white and red. Thus, in order to match general theme, I want Fleksy to change it's color to red whenever keyboard appears on the screen.
Is there something that I have to do within Flutter or there's a specific way to make this work?

Flutter ios and statusbar text color

I read dozens of questions and answers, I read a lot of articles and tried a lot of things, I can't get the status bar text of my app to be white on ios. so first here's a screen shot.
I obviously want it white. Here is what I tried :
I first tried using the theme of my CuppertinoApp, especially the brightness property
I tried using SystemChrome.setSystemUIOverlayStyle to set the statusBrightness
I tried using the Info.plist of my app to set the brightness, and it worked, as in, it is white during the loading, but then, it becomes black when the app really starts.
I tried this package : https://pub.dev/packages/flutter_statusbarcolor and it works too for about 0,2 second, I see the text being white, and then black again.
Every test I did, I used both brightness settings to avoid any misunderstanding and every time I completely refreshed the whole app to avoid any cache problem. What am I missing ?
To make the text and icons white on the status bar use the below code anywhere in your code, ideally in main or in one of the top level widget's build.
SystemChrome.setSystemUIOverlayStyle(
SystemUiOverlayStyle(statusBarBrightness: Brightness.dark)
);
Then re-run your app just incase to see the changes.
p.s: To make the icons dark again use Brightness.light
It seems like there's no other answer than this :
How can i change status text bar color
I'll let people appreciate the time Hugo Passos spent documenting it.

Material UI tabs indicator gets stuck at the wrong place

I'm trying to integrate the Material UI tabs (https://material-ui.com/demos/tabs/#centered), but I get a weird glitch on Safari 12.0.3, Chrome 73.0.36 and Chromium. The blue underline isn't shown at the right place until I click on one tab title:
The code is very simple and directly copied from the documentation:
https://gist.github.com/lcoenen/0f93bd2a2ae3fe9c76135d6b3d73d130
As you can see in the comments, I found a workaround by waiting a second, then setting the state to my default tab.
But is there a more elegant solution or should I create an issue on material-ui GitHub?
In my case the issue was related to a css used:
transform: scale(0.9);
if the scale is different from 1.0 then the tab indicator is at the wrong place...