Flutter - Sliver App Bar (Use Buttons instead of Tabs) - flutter-sliver

We are using Sliver App bar for our app. The difference in our app is we have multiple buttons instead of tabs (as shown in "Final Result" in the article below)
https://medium.com/#diegoveloper/flutter-collapsing-toolbar-sliver-app-bar-14b858e87abe
But we are seeing issue
Scenario: Select Button1 (instead of Tab1), Collapse upper portion of the app, Select "Button 2"
Issue: As soon as "Button 2" is clicked the upper section expands
Expectations: The upper section should stay collapsed when "Button 2" is clicked or switched between "Button 1" & "Button 2" or should expand ONLY when user pulls the screen down.
Has anyone faced this issue?
Please let me know if you need a code snippet. Its not exactly the same as mentioned in the link as we have some modifications to add buttons and actions related to it.
Tried code provided here..
https://medium.com/#diegoveloper/flutter-collapsing-toolbar-sliver-app-bar-14b858e87abe

Related

Identifier has " " in name

Currently stuck with this. There is a popup menu accessed by right clicking on a track name in the application "Pro Tools". I need to access this menu. After some time I have figured out how to click every other pop up menu on the button apart from one. The first part of the script is to identify the name of the window because it changes depending on the project but I've included it anyway.
Other buttons such as these:
pop up button "Playlist selector"
button "Track Record Enable"
button "TrackInput Monitor"
button "Solo"
button "Mute"
pop up button "Track View selector"
pop up button "Automation Mode selector"
pop up button "Track options"
All work fine.
The only difference is the name of the button.
The button I need is identified in UIElementInspector as
pop up button "Track name
\"Rhythm L\""
I believe the issue is caused by the fact there are " " 's in side of another set. When I run the script it says "expected end of line but found identifier"
activate application "Pro Tools"
tell application "System Events"
# Get the frontmost app's *process* object.
set frontAppProcess to first application process whose frontmost is true
end tell
# Tell the *process* to count its windows and return its front window's name.
tell frontAppProcess
if (count of windows) > 0 then
set window_name to name of front window
end if
end tell
tell application "System Events" to tell process "Pro Tools"
click pop up button "Track name "Rhythm L "" of group "Rhythm L - Audio Track " of window window_name
end tell

Close Other tabs in XCode 4?

Am I crazy or is it not possible to close other tabs in XCode 4? I have about 7 tabs opened littering my workspace. I right click the one tab I'm interested in to bring up the context menu. I can see options to open a "new tab", "close tab", "close other tabs", and "move tab to new window". However, the only option that is not greyed out is "new tab". Do I have to put XCode in some magical state to enable the other options? Are these options merely eye candy, teasing me with hopes and aspirations of things I might like to do? Is this some weird kind of year long April fools gag? Inquiring minds wanna know.
*Update Uploading a HocusFocus screen capture for clarity...
You should be able to hover over the tab and click on the cross that appears on the left hand side of the tab. However, if you are not seeing this cross for some strange reason - you should be able to close the current tab in XCode (similar to many other OSX applications) by pressing CMD+W on your keyboard.
While the context menu doesn't work when you right click on a tab, you can achieve all of the same results by using keyboard shortcuts (which do seem to work as expected). Each of the 4 options on the context menu maps to the following shortcuts;
New Tab: CMD + T
Close Tab: CMD + W
Close Other Tabs: CMD + ALT + W
Move Tab to Other Window: I couldn't find a keyboard shortcut, but you can click and drag the tab away from the menu bar.
There doesn't appear to be a sensible way to enable the context menu on the tabs at the current time.
Late to the party but are/were you in full screen? Try again after quitting full screen...
Just click: View -> Hide tab bar
I had a similar issue (I say 'similar, because using Cmd+W. Cmd+Alt+W' didn't work for me).
In my case the tab had a cross on the top right, grayed out and nothing happens when clicking on it. If I opened a new tab, I could close either of the extra tabbed editors, but not both(!)
In View > Editor, selecting 'Standard' removes the 'second tabbed editor'.

Where did the outline view go in Xcode 4 Documentation viewer?

In the new Xcode 4 Documentation Organizer, I can't find the sidebar outline that lets you navigate through things such as class and instance methods, properties, etc for a given class. Where did it go?
What you can do in any document is left-click the rightmost item in the Jump Bar, i.e. the bar at the top. Move your mouse a little and the outline appears.
There is a keyboard shortcut to do this which you can customize: It's called Standard Editor > Show Document Items and defaults to CTRL-6.
This answer might be too late since the question is asked but hope someone can still get some benefit.
Here we go.
The "outline view" in xcode is actually called "Show Document Items" under menu "View -> Standard Editor"
and the keyboard shortcut is "Ctrl + 6" by default.
Another view you might be interested too is so called "Show Related Items" which also appears under menu "View -> Standard Editor" and it provides the option to see the callers and callees of any function you are viewing. Shortcut is "Ctrl + 1".
Personally, I find Ctrl + 6 is hard to press so I change the key bindings through menu "Xcode -> Preferences" and click "Key Bindings" tab. -- Everyone know this of cause :)
Have fun!!
I think that what pkananen refers to is the 'Navigator' sidebar, where you can see the 'eye', 'magnifier glass' and 'bookmarks' options in the jump bar.
If for any reason that sidebar is not showing, use "Editor > Show Navigator" option to bring it back to sight.

Flex 4 - creating pop-up without disabling background / drag image without mouseup trigger?

Sorry to bother you, but I was hoping you could help me. We are currently building a new web site and have run into some issues with our programmer. I am trying to do some research to see if we can find a way for my issue to be solved so that I can let my programmer know.
First issue:
Go here: http://tinyurl.com/276we3f
At the pop-up just enter some example text.
Now, when you hover over any text boxes on the left of the card, you will see that the text boxes become highlighted with a border. If you click in a text box, a properties pop-up appears that allows you to change the font, color, alignment, etc. When you click close, it will take you back to the product and will highlight the text. I want the user to be able to click anywhere within a text box to type new text. For example, in the bottom text box, where it says "join us to celebrate", the user should be able to click anywhere in that text to change the wording. They might want it to say "join me to celebrate" instead of "join us to celebrate". However, if they click next to the word "us" so that they can change it....the pop-up appears.
Is there a way to just have a pop-up appear to the side and not have the background grayed out and disabled?
Also, is there a way to be able to click anywhere in the text box to edit just certain words or letters?
Second and final question:
If you click on "Click to add photo", you will see a pop-up appear that allows you to upload an image, edit it, etc. After uploading the image, I want the user to be able to move the image around with their mouse by dragging it and positioning it in the exact spot that they want it in. We also have the arrows where they can click the up, down, left or right arrow in the image editor pop-up....but I would like for them to be able to drag the image with their mouse as well. We know how to enable dragging of the image. However, the problem occurs when the user releases the mouse button. On the mouseup when the user is done dragging....the pop-up will appear since the pop-up is triggered by the release of the mouse button.
Does that make sense?
Sorry for the long message and THANKS SO MUCH for your help!
For the first part of your question, when showing the dialog box for the properties of the text area, you can pop it up as a non-modal window. This means the properties dialog will show but will not lock out the rest of the UI, enabling the user to change the text however they like. It also means the background does not blur/grey out. To pop up a window in a non-modal state, call PopUpManager.createPopUp (or PopUpManager.addPopUp) with the third parameter (modal) set to false.
For the second issue, set a member variable such as "isDragging" to true when you detect that the user is dragging the image around. Then on mouse up, only display the pop up if isDragging is false.
Hope that helps.

Flex: Is it possible to hide some tabs in tab navigator and show them only when certain event occurs

I am using tab navigator. And it has thee tabs "Search", "Show as text", "Show on map"
I have a address search box in Search tab. I would like to hide other two tabs if search has not happened yet. So if user hasn't searched any thing other two tabs shouldn't be visible.
Can you please tell me how can I achieve this?
Hiding tabs is a preferred way.
Second option is to disable tabs until search is done.
There are a couple ways to do this.
Use the TabNavigator's getTabAt() method which returns the Button that makes up the visual tab and set the visible property to false. It can be tricky with bindings.
The other option is to addChildAt or removeChildAt on the TabNavigaor depending on what tabs you want to show or hide.
As you mention disabling could also work. Do this by as well setting the tab's container to disabled.
I had used removeChildAt on tab navigator and works fine. But if you want to do specific actions on selected Tab then you should think about other solution because the removedChild is no longer available in tab navigator.

Resources