Changing screen contents by clicking a specific tab - flutter

I am using a TabBar in the middle of my screen, there are 4 tabs. I want to change the content above the tabbar when I click on the 3rd tab.
for the first 2 tabs I want to show a text with a searchbar and when I click the 3rd or 4th tab I want to replace the text and the searchbar to another text and a row of Weekdays.
This is the content I am showing (currently) for all the tabs
This is what I want to show when I click the "To Do" or the "Blog" tab
As I am new to Flutter, I have been working for months with the frontend and haven't faced such an issue. so I haven't tried anything.
Here is the main screen where I am displaying the Text and the SearchBar, works fine for the first 2 tabs but I want to change the text and the Searchbar when for the rest of 2 tabs (To Do & Blogs tabs)
This is the TabBar with the Tabs.

Related

Ionic3 Tab bar is not clickable after use of Keyboard

I have a huge problem. I am having a Login Page with two Input Fields and I have a tab bar with five Pages. The first page has a header with an image.
If I login and push the Tabbar page, the image in my header will hide after a second and the tab bar is not clickable anymore.
I have an image above the twi Input fields on my Login Page. If i remove the image (the input fields are online) it works. If i remove the inputs (image above is online) it works..
I have no idea what to do. I hate ionic. I think it is very very sad and stupid to work with it.

hide all tabs pickers on opening a subPage rather than just the parents tabs

We have this design for our Ionic app
This is made by our main page having a tabs component displayed at the top and the schedule page having a tabs component with buttons displayed at the bottom.
When a user clicks on one of the cards (that’s in the page scheduleActivities) it does a function which does
this.navController.push(‘InformationPage’);
tabsHideOnSubPages boolean has been set on all places as well as on each tab element and behaves normally for most cases in the application.
However in this case, the tabs bar in the parent hides correctly (the tabs at the top), but the tabs bar in the parents parent (the one at the bottom that is rendered the home screen) does not.
Is it possible to change the behaviour to hide all tabs pickers, on opening a subPage rather than just the parents tabs.
Initially raised on the Ionic forums here - https://forum.ionicframework.com/t/possible-issue-with-tabshideonsubpages/122681?u=jamesnurse

Ionic 2 Changing between tab pages

I am trying to change between two tab pages that have different tabs. Basically what I want is to have a two tab page at the bottom when the app is first opened, but when the user logs in, then change to a four page tab system. I am able to switch between pages, but the tabs stay. setRoot() doesn't work with changing the tabs at the bottom to the new tabs page and neither does pop() or push(). Is there a way to switch between the tabs pages to where they change from a two tab system to a four tab system after a button is clicked?

ionic framework fixed header with left menu with child view with back button

I am new to ionic framework. I have a requirement where I have login page. Once user has successfully logged in I have to show view with header bar with menu but to on left (clicking on menu shows left menu bar with navigation links). The header bar will always have fixed text I.e. Company name. Below that I have to show view ex. Search text box. Once user clicks on search button user would be redirected to results page. This page will have search results with back button above search result. Be informed this page will also have header with menu button and company name.
To summarize - fixed header with left menu and fixed label. Child view will have optional back button below header

How to avoid the white space which appears while switching between tabs in ionic?

I am working on a project based on Ionic. I have a page consisting of three tabs.
When I switch between the tabs there is a white blank screen appears for a short period of time, but it looks like the whole page is getting refreshed.What I want to achieve is that the tabs should remain as it is. It should not look like tab gets disappears and then appears.only the content should change.
Any help will be appreciated.
you have to use show hide functionality. in your design three tabs are there right. so in your application create one main div and in that div put your three tab and inside your controller buy-default tab1 data show on load tab2 and tab3 div make hide. and if you click on tab2 then hide data tab1 and tab3. you do not change your whole page only data show hide. its faster and all header footer data as it is. and if you have any confusing then tell me.