is there a way to have a multi colored tab bar in flutter?Padding around AppBar in a DefaultTabControllerFlutter - Implementing a Navigation drawer with a TabBarView widget with dynamic Tab viewFlutter: Failed assertion while using navigator.dartHow to offset a scaffold widget in Flutter?Flutter : Bad state: Stream has already been listened toHow to use Drawer without Scaffold.drawer?Flutter showSnackBar called on nullHow I can put Widget above Widget using List<Widget> widget in Flutter?FloatingActionButton backgroundColor defaults to accentColorFlutter/Dart Basic Understanding
What are the limitations of the Hendersson-Hasselbalch equation?
Is it okay to use different fingers every time while playing a song on keyboard? Is it considered a bad practice?
How easy is it to get a gun illegally in the United States?
What could prevent players from leaving an island?
What printing process is this?
Can I use my US callsign to transmit while in El Salvador?
Would the shaking of an earthquake be visible to somebody in a low-flying aircraft?
Can the Cauchy product of divergent series with itself be convergent?
What's "halachic" about "Esav hates Ya'akov"?
Pronouns when writing from the point of view of a robot
Why do proponents of guns oppose gun competency tests?
Why are there yellow dot stickers on the front doors of businesses in Russia?
C# TCP server/client class
How to increase Solr JVM memory
Why do rocket engines use nitrogen actuators to operate the fuel/oxidiser valves instead of electric servos?
How do I know when and if a character requires a backstory?
Javascript - Find a deepest node in a binary tree
Is it uncompelling to continue the story with lower stakes?
Why is the Vasa Museum in Stockholm so Popular?
A Checkmate of Dubious Legality
How is foot-pounds of energy defined?
Is there a booking app or site that lets you specify your gender for shared dormitories?
Would this winged human/angel be able to fly?
Piece de Resistance - Introduction & Ace and A's
is there a way to have a multi colored tab bar in flutter?
Padding around AppBar in a DefaultTabControllerFlutter - Implementing a Navigation drawer with a TabBarView widget with dynamic Tab viewFlutter: Failed assertion while using navigator.dartHow to offset a scaffold widget in Flutter?Flutter : Bad state: Stream has already been listened toHow to use Drawer without Scaffold.drawer?Flutter showSnackBar called on nullHow I can put Widget above Widget using List<Widget> widget in Flutter?FloatingActionButton backgroundColor defaults to accentColorFlutter/Dart Basic Understanding
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
Hi I'm still new to flutter and been studying it for about a week now, I'm currently creating an app that organizes funds for budgeting, I'm attempting to create a multi colored tab bar so users can easily identify their funds, I tried searching over the net and read the tab documentation but still no luck, any tips?
~edit
What I'm trying to achieve is to get the background color of each tab bar same as the background color of scaffold, the default background color of tab bar is currently grey, it should be red on the first tab, blue on second tab, yellow on third tab. is it possible?
here's a screenshot in the emulator:
screenshot
here are sample of my code:
/main.dart
import 'package:flutter/material.dart';
import './FirstTab.dart' as first;
import './SecondTab.dart' as second;
import 'ThirdTab.dart' as third;
void main()
runApp(new MaterialApp(
home: new MyTabs()
));
class MyTabs extends StatefulWidget
@override
MyTabsState createState() => new MyTabsState();
class MyTabsState extends State<MyTabs> with SingleTickerProviderStateMixin
TabController controller;
@override
void initState()
super.initState();
controller = new TabController(vsync: this, length: 3);
@override
void dispose()
controller.dispose();
super.dispose();
@override
Widget build(BuildContext context)
return new Scaffold(
appBar: new AppBar(
title: new Text('Multi Colored Tab Bar'),
backgroundColor: Colors.grey,
bottom: new TabBar(
controller: controller,
tabs: <Tab>[
new Tab(text: 'First Tab'),
new Tab(text: 'Second Tab'),
new Tab(text: 'Third Tab'),
],
),
),
body: new TabBarView(
controller: controller,
children: <Widget>[
new first.First(),
new second.Second(),
new third.Third(),
],
),
);
/FirstTab.dart
import 'package:flutter/material.dart';
class First extends StatelessWidget
@override
Widget build(BuildContext context)
return new Scaffold(
backgroundColor: Colors.red
);
/SecondTab.dart
import 'package:flutter/material.dart';
class Second extends StatelessWidget
@override
Widget build(BuildContext context)
return new Scaffold(
backgroundColor: Colors.blue
);
/ThirdTab.dart
import 'package:flutter/material.dart';
class Third extends StatelessWidget
@override
Widget build(BuildContext context)
return new Scaffold(
backgroundColor: Colors.yellow
);
dart flutter tabs
add a comment |
Hi I'm still new to flutter and been studying it for about a week now, I'm currently creating an app that organizes funds for budgeting, I'm attempting to create a multi colored tab bar so users can easily identify their funds, I tried searching over the net and read the tab documentation but still no luck, any tips?
~edit
What I'm trying to achieve is to get the background color of each tab bar same as the background color of scaffold, the default background color of tab bar is currently grey, it should be red on the first tab, blue on second tab, yellow on third tab. is it possible?
here's a screenshot in the emulator:
screenshot
here are sample of my code:
/main.dart
import 'package:flutter/material.dart';
import './FirstTab.dart' as first;
import './SecondTab.dart' as second;
import 'ThirdTab.dart' as third;
void main()
runApp(new MaterialApp(
home: new MyTabs()
));
class MyTabs extends StatefulWidget
@override
MyTabsState createState() => new MyTabsState();
class MyTabsState extends State<MyTabs> with SingleTickerProviderStateMixin
TabController controller;
@override
void initState()
super.initState();
controller = new TabController(vsync: this, length: 3);
@override
void dispose()
controller.dispose();
super.dispose();
@override
Widget build(BuildContext context)
return new Scaffold(
appBar: new AppBar(
title: new Text('Multi Colored Tab Bar'),
backgroundColor: Colors.grey,
bottom: new TabBar(
controller: controller,
tabs: <Tab>[
new Tab(text: 'First Tab'),
new Tab(text: 'Second Tab'),
new Tab(text: 'Third Tab'),
],
),
),
body: new TabBarView(
controller: controller,
children: <Widget>[
new first.First(),
new second.Second(),
new third.Third(),
],
),
);
/FirstTab.dart
import 'package:flutter/material.dart';
class First extends StatelessWidget
@override
Widget build(BuildContext context)
return new Scaffold(
backgroundColor: Colors.red
);
/SecondTab.dart
import 'package:flutter/material.dart';
class Second extends StatelessWidget
@override
Widget build(BuildContext context)
return new Scaffold(
backgroundColor: Colors.blue
);
/ThirdTab.dart
import 'package:flutter/material.dart';
class Third extends StatelessWidget
@override
Widget build(BuildContext context)
return new Scaffold(
backgroundColor: Colors.yellow
);
dart flutter tabs
Hello Jang ! can you show us the code where you tried ?
– Mazin Ibrahim
Mar 27 at 5:20
Which kind of multi colored are you going for? Multiple color sections, a color hue, switching colors?
– Niklas
Mar 27 at 7:40
hi, thanks for the response, i added some detailed explanation and some codes, sorry for the confusion.
– Jang Delos Santos
Mar 27 at 10:38
add a comment |
Hi I'm still new to flutter and been studying it for about a week now, I'm currently creating an app that organizes funds for budgeting, I'm attempting to create a multi colored tab bar so users can easily identify their funds, I tried searching over the net and read the tab documentation but still no luck, any tips?
~edit
What I'm trying to achieve is to get the background color of each tab bar same as the background color of scaffold, the default background color of tab bar is currently grey, it should be red on the first tab, blue on second tab, yellow on third tab. is it possible?
here's a screenshot in the emulator:
screenshot
here are sample of my code:
/main.dart
import 'package:flutter/material.dart';
import './FirstTab.dart' as first;
import './SecondTab.dart' as second;
import 'ThirdTab.dart' as third;
void main()
runApp(new MaterialApp(
home: new MyTabs()
));
class MyTabs extends StatefulWidget
@override
MyTabsState createState() => new MyTabsState();
class MyTabsState extends State<MyTabs> with SingleTickerProviderStateMixin
TabController controller;
@override
void initState()
super.initState();
controller = new TabController(vsync: this, length: 3);
@override
void dispose()
controller.dispose();
super.dispose();
@override
Widget build(BuildContext context)
return new Scaffold(
appBar: new AppBar(
title: new Text('Multi Colored Tab Bar'),
backgroundColor: Colors.grey,
bottom: new TabBar(
controller: controller,
tabs: <Tab>[
new Tab(text: 'First Tab'),
new Tab(text: 'Second Tab'),
new Tab(text: 'Third Tab'),
],
),
),
body: new TabBarView(
controller: controller,
children: <Widget>[
new first.First(),
new second.Second(),
new third.Third(),
],
),
);
/FirstTab.dart
import 'package:flutter/material.dart';
class First extends StatelessWidget
@override
Widget build(BuildContext context)
return new Scaffold(
backgroundColor: Colors.red
);
/SecondTab.dart
import 'package:flutter/material.dart';
class Second extends StatelessWidget
@override
Widget build(BuildContext context)
return new Scaffold(
backgroundColor: Colors.blue
);
/ThirdTab.dart
import 'package:flutter/material.dart';
class Third extends StatelessWidget
@override
Widget build(BuildContext context)
return new Scaffold(
backgroundColor: Colors.yellow
);
dart flutter tabs
Hi I'm still new to flutter and been studying it for about a week now, I'm currently creating an app that organizes funds for budgeting, I'm attempting to create a multi colored tab bar so users can easily identify their funds, I tried searching over the net and read the tab documentation but still no luck, any tips?
~edit
What I'm trying to achieve is to get the background color of each tab bar same as the background color of scaffold, the default background color of tab bar is currently grey, it should be red on the first tab, blue on second tab, yellow on third tab. is it possible?
here's a screenshot in the emulator:
screenshot
here are sample of my code:
/main.dart
import 'package:flutter/material.dart';
import './FirstTab.dart' as first;
import './SecondTab.dart' as second;
import 'ThirdTab.dart' as third;
void main()
runApp(new MaterialApp(
home: new MyTabs()
));
class MyTabs extends StatefulWidget
@override
MyTabsState createState() => new MyTabsState();
class MyTabsState extends State<MyTabs> with SingleTickerProviderStateMixin
TabController controller;
@override
void initState()
super.initState();
controller = new TabController(vsync: this, length: 3);
@override
void dispose()
controller.dispose();
super.dispose();
@override
Widget build(BuildContext context)
return new Scaffold(
appBar: new AppBar(
title: new Text('Multi Colored Tab Bar'),
backgroundColor: Colors.grey,
bottom: new TabBar(
controller: controller,
tabs: <Tab>[
new Tab(text: 'First Tab'),
new Tab(text: 'Second Tab'),
new Tab(text: 'Third Tab'),
],
),
),
body: new TabBarView(
controller: controller,
children: <Widget>[
new first.First(),
new second.Second(),
new third.Third(),
],
),
);
/FirstTab.dart
import 'package:flutter/material.dart';
class First extends StatelessWidget
@override
Widget build(BuildContext context)
return new Scaffold(
backgroundColor: Colors.red
);
/SecondTab.dart
import 'package:flutter/material.dart';
class Second extends StatelessWidget
@override
Widget build(BuildContext context)
return new Scaffold(
backgroundColor: Colors.blue
);
/ThirdTab.dart
import 'package:flutter/material.dart';
class Third extends StatelessWidget
@override
Widget build(BuildContext context)
return new Scaffold(
backgroundColor: Colors.yellow
);
dart flutter tabs
dart flutter tabs
edited Mar 27 at 11:39
Jang Delos Santos
asked Mar 27 at 2:42
Jang Delos SantosJang Delos Santos
62 bronze badges
62 bronze badges
Hello Jang ! can you show us the code where you tried ?
– Mazin Ibrahim
Mar 27 at 5:20
Which kind of multi colored are you going for? Multiple color sections, a color hue, switching colors?
– Niklas
Mar 27 at 7:40
hi, thanks for the response, i added some detailed explanation and some codes, sorry for the confusion.
– Jang Delos Santos
Mar 27 at 10:38
add a comment |
Hello Jang ! can you show us the code where you tried ?
– Mazin Ibrahim
Mar 27 at 5:20
Which kind of multi colored are you going for? Multiple color sections, a color hue, switching colors?
– Niklas
Mar 27 at 7:40
hi, thanks for the response, i added some detailed explanation and some codes, sorry for the confusion.
– Jang Delos Santos
Mar 27 at 10:38
Hello Jang ! can you show us the code where you tried ?
– Mazin Ibrahim
Mar 27 at 5:20
Hello Jang ! can you show us the code where you tried ?
– Mazin Ibrahim
Mar 27 at 5:20
Which kind of multi colored are you going for? Multiple color sections, a color hue, switching colors?
– Niklas
Mar 27 at 7:40
Which kind of multi colored are you going for? Multiple color sections, a color hue, switching colors?
– Niklas
Mar 27 at 7:40
hi, thanks for the response, i added some detailed explanation and some codes, sorry for the confusion.
– Jang Delos Santos
Mar 27 at 10:38
hi, thanks for the response, i added some detailed explanation and some codes, sorry for the confusion.
– Jang Delos Santos
Mar 27 at 10:38
add a comment |
3 Answers
3
active
oldest
votes
The below will automatically set the Scaffold
color on load and the tabs reflect the appropriate default colors.
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget
@override
Widget build(BuildContext context)
return MaterialApp(
home: TabBarApp(),
);
class TabBarApp extends StatefulWidget
createState() => _TabBarAppState();
class _TabBarAppState extends State<TabBarApp>
with SingleTickerProviderStateMixin
TabController _controller;
List<TabData> _tabData;
List<Tab> _tabs = [];
List<Widget> _tabViews = [];
Color _activeColor;
@override
void initState()
super.initState();
_tabData = [
TabData(title: 'First Tab', color: Colors.red),
TabData(title: 'Second Tab', color: Colors.green),
TabData(title: 'Third Tab', color: Colors.blue),
];
_activeColor = _tabData.first.color;
_tabData.forEach((data)
final tab = Tab(
child: Container(
constraints: BoxConstraints.expand(),
color: data.color,
child: Center(
child: Text(data.title),
),
),
);
_tabs.add(tab);
final widget = Scaffold(backgroundColor: data.color);
_tabViews.add(widget);
);
_controller = TabController(vsync: this, length: _tabData.length)
..addListener(()
setState(()
_activeColor = _tabData[_controller.index].color;
);
);
@override
void dispose()
_controller?.dispose();
super.dispose();
@override
Widget build(BuildContext context)
return Theme(
data: ThemeData(primaryColor: _activeColor),
child: Scaffold(
backgroundColor: _activeColor,
appBar: AppBar(
title: Text('Multi Colored Tab Bar'),
bottom: TabBar(
indicatorColor: _activeColor,
labelPadding: EdgeInsets.zero,
controller: _controller,
tabs: _tabs,
),
),
body: TabBarView(
controller: _controller,
children: _tabViews,
),
),
);
class TabData
TabData(this.title, this.color);
final String title;
final Color color;
wow exactly what I'm aiming for. thanks for this :)
– Jang Delos Santos
Mar 28 at 0:39
add a comment |
Yes it is possible try this
import 'package:flutter/material.dart';
import './FirstTab.dart' as first;
import './SecondTab.dart' as second;
import 'ThirdTab.dart' as third;
void main()
runApp(new MaterialApp(
home: new MyTabs()
));
class MyTabs extends StatefulWidget
@override
MyTabsState createState() => new MyTabsState();
class MyTabsState extends State<MyTabs> with SingleTickerProviderStateMixin
TabController controller;
int tabIndex =0 ;
@override
void initState()
super.initState();
controller = new TabController(vsync: this, length: 3);
@override
void dispose()
controller.dispose();
super.dispose();
@override
Widget build(BuildContext context)
return new Scaffold(
appBar: new AppBar(
title: new Text('Multi Colored Tab Bar'),
backgroundColor: Colors.grey,
bottom: new TabBar(
controller: controller,
indicator: BoxDecoration(color: setColor(tabIndex)),
onTap: (index)
setState(()
tabIndex = index;
);
,
tabs: <Tab>[
new Tab(text: 'First Tab'),
new Tab(text: 'Second Tab'),
new Tab(text: 'Third Tab'),
],
),
),
body: new TabBarView(
controller: controller,
children: <Widget>[
new first.First(),
new second.Second(),
new third.Third(),
],
),
);
setColor(int tabIndex)
if(tabIndex == 0)
return Colors.red;
else if(tabIndex == 1)
return Colors.blue;
else if(tabIndex == 2)
return Colors.yellow;
thanks for this, it's really close. but is it possible to have it's color automatically as it is? i mean without pressing each tab. like the first tab has a default color of red, then second tab has a default color of blue, third tab has a default color of yellow.
– Jang Delos Santos
Mar 27 at 12:25
add a comment |
I got it working by changing primaryColor
in theme
of MaterialApp
, colour of Tab can be changed. So inside build method of MyTabsState
return a MaterialApp
& set it's theme
to a variable currentTabColor.
Declare currentTabColor
in MyTabsState
& set it to Colors.red
Then set onTap
to a callback which returns index of current tab & change state of currentTabColor
using if..else
import 'package:flutter/material.dart';
void main()
runApp(MyTabs());
class MyTabs extends StatefulWidget
@override
MyTabsState createState() => MyTabsState();
class MyTabsState extends State<MyTabs> with SingleTickerProviderStateMixin
TabController controller;
Color currentTabColor;
@override
void initState()
super.initState();
currentTabColor = Colors.red;
controller = TabController(vsync: this, length: 3);
@override
void dispose()
controller.dispose();
super.dispose();
@override
Widget build(BuildContext context)
return MaterialApp(
theme: ThemeData(
primaryColor: currentTabColor,
),
home: Scaffold(
appBar: AppBar(
title: Text('Multi Colored Tab Bar'),
bottom: TabBar(
onTap: (tabIndex)
if (tabIndex == 0)
currentTabColor = Colors.red;
else if (tabIndex == 1)
currentTabColor = Colors.blue;
else
currentTabColor = Colors.green;
setState(()
currentTabColor = currentTabColor;
);
,
controller: controller,
tabs: <Tab>[
Tab(
text: 'First Tab',
),
Tab(text: 'Second Tab'),
Tab(text: 'Third Tab'),
],
),
),
body: TabBarView(
controller: controller,
children: <Widget>[
Scaffold(backgroundColor: Colors.red),
Scaffold(backgroundColor: Colors.blue),
Scaffold(backgroundColor: Colors.green),
],
),
),
);
Output
wow, didn't know it can be played like that, but is it possible to have each tab has their own default color? i mean without pressing anything they already have their own colors, like the first tab has a default color of red, then second tab has a default color of blue, third tab has a default color of yellow, so users can easily identify each tab by their color even at first glance.
– Jang Delos Santos
Mar 27 at 12:35
Sounds tricky, but that will not look that good. In Google play app when you click on any tab, colour of tab & app-bar changes after that only. Initially all tabs have green colours.
– Tirth Patel
Mar 27 at 13:15
1
thanks for looking into this, i learned a lot and this is a good start of what i envisioned it to be
– Jang Delos Santos
Mar 28 at 0:41
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55369005%2fis-there-a-way-to-have-a-multi-colored-tab-bar-in-flutter%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
The below will automatically set the Scaffold
color on load and the tabs reflect the appropriate default colors.
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget
@override
Widget build(BuildContext context)
return MaterialApp(
home: TabBarApp(),
);
class TabBarApp extends StatefulWidget
createState() => _TabBarAppState();
class _TabBarAppState extends State<TabBarApp>
with SingleTickerProviderStateMixin
TabController _controller;
List<TabData> _tabData;
List<Tab> _tabs = [];
List<Widget> _tabViews = [];
Color _activeColor;
@override
void initState()
super.initState();
_tabData = [
TabData(title: 'First Tab', color: Colors.red),
TabData(title: 'Second Tab', color: Colors.green),
TabData(title: 'Third Tab', color: Colors.blue),
];
_activeColor = _tabData.first.color;
_tabData.forEach((data)
final tab = Tab(
child: Container(
constraints: BoxConstraints.expand(),
color: data.color,
child: Center(
child: Text(data.title),
),
),
);
_tabs.add(tab);
final widget = Scaffold(backgroundColor: data.color);
_tabViews.add(widget);
);
_controller = TabController(vsync: this, length: _tabData.length)
..addListener(()
setState(()
_activeColor = _tabData[_controller.index].color;
);
);
@override
void dispose()
_controller?.dispose();
super.dispose();
@override
Widget build(BuildContext context)
return Theme(
data: ThemeData(primaryColor: _activeColor),
child: Scaffold(
backgroundColor: _activeColor,
appBar: AppBar(
title: Text('Multi Colored Tab Bar'),
bottom: TabBar(
indicatorColor: _activeColor,
labelPadding: EdgeInsets.zero,
controller: _controller,
tabs: _tabs,
),
),
body: TabBarView(
controller: _controller,
children: _tabViews,
),
),
);
class TabData
TabData(this.title, this.color);
final String title;
final Color color;
wow exactly what I'm aiming for. thanks for this :)
– Jang Delos Santos
Mar 28 at 0:39
add a comment |
The below will automatically set the Scaffold
color on load and the tabs reflect the appropriate default colors.
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget
@override
Widget build(BuildContext context)
return MaterialApp(
home: TabBarApp(),
);
class TabBarApp extends StatefulWidget
createState() => _TabBarAppState();
class _TabBarAppState extends State<TabBarApp>
with SingleTickerProviderStateMixin
TabController _controller;
List<TabData> _tabData;
List<Tab> _tabs = [];
List<Widget> _tabViews = [];
Color _activeColor;
@override
void initState()
super.initState();
_tabData = [
TabData(title: 'First Tab', color: Colors.red),
TabData(title: 'Second Tab', color: Colors.green),
TabData(title: 'Third Tab', color: Colors.blue),
];
_activeColor = _tabData.first.color;
_tabData.forEach((data)
final tab = Tab(
child: Container(
constraints: BoxConstraints.expand(),
color: data.color,
child: Center(
child: Text(data.title),
),
),
);
_tabs.add(tab);
final widget = Scaffold(backgroundColor: data.color);
_tabViews.add(widget);
);
_controller = TabController(vsync: this, length: _tabData.length)
..addListener(()
setState(()
_activeColor = _tabData[_controller.index].color;
);
);
@override
void dispose()
_controller?.dispose();
super.dispose();
@override
Widget build(BuildContext context)
return Theme(
data: ThemeData(primaryColor: _activeColor),
child: Scaffold(
backgroundColor: _activeColor,
appBar: AppBar(
title: Text('Multi Colored Tab Bar'),
bottom: TabBar(
indicatorColor: _activeColor,
labelPadding: EdgeInsets.zero,
controller: _controller,
tabs: _tabs,
),
),
body: TabBarView(
controller: _controller,
children: _tabViews,
),
),
);
class TabData
TabData(this.title, this.color);
final String title;
final Color color;
wow exactly what I'm aiming for. thanks for this :)
– Jang Delos Santos
Mar 28 at 0:39
add a comment |
The below will automatically set the Scaffold
color on load and the tabs reflect the appropriate default colors.
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget
@override
Widget build(BuildContext context)
return MaterialApp(
home: TabBarApp(),
);
class TabBarApp extends StatefulWidget
createState() => _TabBarAppState();
class _TabBarAppState extends State<TabBarApp>
with SingleTickerProviderStateMixin
TabController _controller;
List<TabData> _tabData;
List<Tab> _tabs = [];
List<Widget> _tabViews = [];
Color _activeColor;
@override
void initState()
super.initState();
_tabData = [
TabData(title: 'First Tab', color: Colors.red),
TabData(title: 'Second Tab', color: Colors.green),
TabData(title: 'Third Tab', color: Colors.blue),
];
_activeColor = _tabData.first.color;
_tabData.forEach((data)
final tab = Tab(
child: Container(
constraints: BoxConstraints.expand(),
color: data.color,
child: Center(
child: Text(data.title),
),
),
);
_tabs.add(tab);
final widget = Scaffold(backgroundColor: data.color);
_tabViews.add(widget);
);
_controller = TabController(vsync: this, length: _tabData.length)
..addListener(()
setState(()
_activeColor = _tabData[_controller.index].color;
);
);
@override
void dispose()
_controller?.dispose();
super.dispose();
@override
Widget build(BuildContext context)
return Theme(
data: ThemeData(primaryColor: _activeColor),
child: Scaffold(
backgroundColor: _activeColor,
appBar: AppBar(
title: Text('Multi Colored Tab Bar'),
bottom: TabBar(
indicatorColor: _activeColor,
labelPadding: EdgeInsets.zero,
controller: _controller,
tabs: _tabs,
),
),
body: TabBarView(
controller: _controller,
children: _tabViews,
),
),
);
class TabData
TabData(this.title, this.color);
final String title;
final Color color;
The below will automatically set the Scaffold
color on load and the tabs reflect the appropriate default colors.
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget
@override
Widget build(BuildContext context)
return MaterialApp(
home: TabBarApp(),
);
class TabBarApp extends StatefulWidget
createState() => _TabBarAppState();
class _TabBarAppState extends State<TabBarApp>
with SingleTickerProviderStateMixin
TabController _controller;
List<TabData> _tabData;
List<Tab> _tabs = [];
List<Widget> _tabViews = [];
Color _activeColor;
@override
void initState()
super.initState();
_tabData = [
TabData(title: 'First Tab', color: Colors.red),
TabData(title: 'Second Tab', color: Colors.green),
TabData(title: 'Third Tab', color: Colors.blue),
];
_activeColor = _tabData.first.color;
_tabData.forEach((data)
final tab = Tab(
child: Container(
constraints: BoxConstraints.expand(),
color: data.color,
child: Center(
child: Text(data.title),
),
),
);
_tabs.add(tab);
final widget = Scaffold(backgroundColor: data.color);
_tabViews.add(widget);
);
_controller = TabController(vsync: this, length: _tabData.length)
..addListener(()
setState(()
_activeColor = _tabData[_controller.index].color;
);
);
@override
void dispose()
_controller?.dispose();
super.dispose();
@override
Widget build(BuildContext context)
return Theme(
data: ThemeData(primaryColor: _activeColor),
child: Scaffold(
backgroundColor: _activeColor,
appBar: AppBar(
title: Text('Multi Colored Tab Bar'),
bottom: TabBar(
indicatorColor: _activeColor,
labelPadding: EdgeInsets.zero,
controller: _controller,
tabs: _tabs,
),
),
body: TabBarView(
controller: _controller,
children: _tabViews,
),
),
);
class TabData
TabData(this.title, this.color);
final String title;
final Color color;
edited Mar 27 at 21:47
answered Mar 27 at 21:27
Albert LardizabalAlbert Lardizabal
2,08616 silver badges25 bronze badges
2,08616 silver badges25 bronze badges
wow exactly what I'm aiming for. thanks for this :)
– Jang Delos Santos
Mar 28 at 0:39
add a comment |
wow exactly what I'm aiming for. thanks for this :)
– Jang Delos Santos
Mar 28 at 0:39
wow exactly what I'm aiming for. thanks for this :)
– Jang Delos Santos
Mar 28 at 0:39
wow exactly what I'm aiming for. thanks for this :)
– Jang Delos Santos
Mar 28 at 0:39
add a comment |
Yes it is possible try this
import 'package:flutter/material.dart';
import './FirstTab.dart' as first;
import './SecondTab.dart' as second;
import 'ThirdTab.dart' as third;
void main()
runApp(new MaterialApp(
home: new MyTabs()
));
class MyTabs extends StatefulWidget
@override
MyTabsState createState() => new MyTabsState();
class MyTabsState extends State<MyTabs> with SingleTickerProviderStateMixin
TabController controller;
int tabIndex =0 ;
@override
void initState()
super.initState();
controller = new TabController(vsync: this, length: 3);
@override
void dispose()
controller.dispose();
super.dispose();
@override
Widget build(BuildContext context)
return new Scaffold(
appBar: new AppBar(
title: new Text('Multi Colored Tab Bar'),
backgroundColor: Colors.grey,
bottom: new TabBar(
controller: controller,
indicator: BoxDecoration(color: setColor(tabIndex)),
onTap: (index)
setState(()
tabIndex = index;
);
,
tabs: <Tab>[
new Tab(text: 'First Tab'),
new Tab(text: 'Second Tab'),
new Tab(text: 'Third Tab'),
],
),
),
body: new TabBarView(
controller: controller,
children: <Widget>[
new first.First(),
new second.Second(),
new third.Third(),
],
),
);
setColor(int tabIndex)
if(tabIndex == 0)
return Colors.red;
else if(tabIndex == 1)
return Colors.blue;
else if(tabIndex == 2)
return Colors.yellow;
thanks for this, it's really close. but is it possible to have it's color automatically as it is? i mean without pressing each tab. like the first tab has a default color of red, then second tab has a default color of blue, third tab has a default color of yellow.
– Jang Delos Santos
Mar 27 at 12:25
add a comment |
Yes it is possible try this
import 'package:flutter/material.dart';
import './FirstTab.dart' as first;
import './SecondTab.dart' as second;
import 'ThirdTab.dart' as third;
void main()
runApp(new MaterialApp(
home: new MyTabs()
));
class MyTabs extends StatefulWidget
@override
MyTabsState createState() => new MyTabsState();
class MyTabsState extends State<MyTabs> with SingleTickerProviderStateMixin
TabController controller;
int tabIndex =0 ;
@override
void initState()
super.initState();
controller = new TabController(vsync: this, length: 3);
@override
void dispose()
controller.dispose();
super.dispose();
@override
Widget build(BuildContext context)
return new Scaffold(
appBar: new AppBar(
title: new Text('Multi Colored Tab Bar'),
backgroundColor: Colors.grey,
bottom: new TabBar(
controller: controller,
indicator: BoxDecoration(color: setColor(tabIndex)),
onTap: (index)
setState(()
tabIndex = index;
);
,
tabs: <Tab>[
new Tab(text: 'First Tab'),
new Tab(text: 'Second Tab'),
new Tab(text: 'Third Tab'),
],
),
),
body: new TabBarView(
controller: controller,
children: <Widget>[
new first.First(),
new second.Second(),
new third.Third(),
],
),
);
setColor(int tabIndex)
if(tabIndex == 0)
return Colors.red;
else if(tabIndex == 1)
return Colors.blue;
else if(tabIndex == 2)
return Colors.yellow;
thanks for this, it's really close. but is it possible to have it's color automatically as it is? i mean without pressing each tab. like the first tab has a default color of red, then second tab has a default color of blue, third tab has a default color of yellow.
– Jang Delos Santos
Mar 27 at 12:25
add a comment |
Yes it is possible try this
import 'package:flutter/material.dart';
import './FirstTab.dart' as first;
import './SecondTab.dart' as second;
import 'ThirdTab.dart' as third;
void main()
runApp(new MaterialApp(
home: new MyTabs()
));
class MyTabs extends StatefulWidget
@override
MyTabsState createState() => new MyTabsState();
class MyTabsState extends State<MyTabs> with SingleTickerProviderStateMixin
TabController controller;
int tabIndex =0 ;
@override
void initState()
super.initState();
controller = new TabController(vsync: this, length: 3);
@override
void dispose()
controller.dispose();
super.dispose();
@override
Widget build(BuildContext context)
return new Scaffold(
appBar: new AppBar(
title: new Text('Multi Colored Tab Bar'),
backgroundColor: Colors.grey,
bottom: new TabBar(
controller: controller,
indicator: BoxDecoration(color: setColor(tabIndex)),
onTap: (index)
setState(()
tabIndex = index;
);
,
tabs: <Tab>[
new Tab(text: 'First Tab'),
new Tab(text: 'Second Tab'),
new Tab(text: 'Third Tab'),
],
),
),
body: new TabBarView(
controller: controller,
children: <Widget>[
new first.First(),
new second.Second(),
new third.Third(),
],
),
);
setColor(int tabIndex)
if(tabIndex == 0)
return Colors.red;
else if(tabIndex == 1)
return Colors.blue;
else if(tabIndex == 2)
return Colors.yellow;
Yes it is possible try this
import 'package:flutter/material.dart';
import './FirstTab.dart' as first;
import './SecondTab.dart' as second;
import 'ThirdTab.dart' as third;
void main()
runApp(new MaterialApp(
home: new MyTabs()
));
class MyTabs extends StatefulWidget
@override
MyTabsState createState() => new MyTabsState();
class MyTabsState extends State<MyTabs> with SingleTickerProviderStateMixin
TabController controller;
int tabIndex =0 ;
@override
void initState()
super.initState();
controller = new TabController(vsync: this, length: 3);
@override
void dispose()
controller.dispose();
super.dispose();
@override
Widget build(BuildContext context)
return new Scaffold(
appBar: new AppBar(
title: new Text('Multi Colored Tab Bar'),
backgroundColor: Colors.grey,
bottom: new TabBar(
controller: controller,
indicator: BoxDecoration(color: setColor(tabIndex)),
onTap: (index)
setState(()
tabIndex = index;
);
,
tabs: <Tab>[
new Tab(text: 'First Tab'),
new Tab(text: 'Second Tab'),
new Tab(text: 'Third Tab'),
],
),
),
body: new TabBarView(
controller: controller,
children: <Widget>[
new first.First(),
new second.Second(),
new third.Third(),
],
),
);
setColor(int tabIndex)
if(tabIndex == 0)
return Colors.red;
else if(tabIndex == 1)
return Colors.blue;
else if(tabIndex == 2)
return Colors.yellow;
answered Mar 27 at 12:16
Android TeamAndroid Team
8,6631 gold badge16 silver badges37 bronze badges
8,6631 gold badge16 silver badges37 bronze badges
thanks for this, it's really close. but is it possible to have it's color automatically as it is? i mean without pressing each tab. like the first tab has a default color of red, then second tab has a default color of blue, third tab has a default color of yellow.
– Jang Delos Santos
Mar 27 at 12:25
add a comment |
thanks for this, it's really close. but is it possible to have it's color automatically as it is? i mean without pressing each tab. like the first tab has a default color of red, then second tab has a default color of blue, third tab has a default color of yellow.
– Jang Delos Santos
Mar 27 at 12:25
thanks for this, it's really close. but is it possible to have it's color automatically as it is? i mean without pressing each tab. like the first tab has a default color of red, then second tab has a default color of blue, third tab has a default color of yellow.
– Jang Delos Santos
Mar 27 at 12:25
thanks for this, it's really close. but is it possible to have it's color automatically as it is? i mean without pressing each tab. like the first tab has a default color of red, then second tab has a default color of blue, third tab has a default color of yellow.
– Jang Delos Santos
Mar 27 at 12:25
add a comment |
I got it working by changing primaryColor
in theme
of MaterialApp
, colour of Tab can be changed. So inside build method of MyTabsState
return a MaterialApp
& set it's theme
to a variable currentTabColor.
Declare currentTabColor
in MyTabsState
& set it to Colors.red
Then set onTap
to a callback which returns index of current tab & change state of currentTabColor
using if..else
import 'package:flutter/material.dart';
void main()
runApp(MyTabs());
class MyTabs extends StatefulWidget
@override
MyTabsState createState() => MyTabsState();
class MyTabsState extends State<MyTabs> with SingleTickerProviderStateMixin
TabController controller;
Color currentTabColor;
@override
void initState()
super.initState();
currentTabColor = Colors.red;
controller = TabController(vsync: this, length: 3);
@override
void dispose()
controller.dispose();
super.dispose();
@override
Widget build(BuildContext context)
return MaterialApp(
theme: ThemeData(
primaryColor: currentTabColor,
),
home: Scaffold(
appBar: AppBar(
title: Text('Multi Colored Tab Bar'),
bottom: TabBar(
onTap: (tabIndex)
if (tabIndex == 0)
currentTabColor = Colors.red;
else if (tabIndex == 1)
currentTabColor = Colors.blue;
else
currentTabColor = Colors.green;
setState(()
currentTabColor = currentTabColor;
);
,
controller: controller,
tabs: <Tab>[
Tab(
text: 'First Tab',
),
Tab(text: 'Second Tab'),
Tab(text: 'Third Tab'),
],
),
),
body: TabBarView(
controller: controller,
children: <Widget>[
Scaffold(backgroundColor: Colors.red),
Scaffold(backgroundColor: Colors.blue),
Scaffold(backgroundColor: Colors.green),
],
),
),
);
Output
wow, didn't know it can be played like that, but is it possible to have each tab has their own default color? i mean without pressing anything they already have their own colors, like the first tab has a default color of red, then second tab has a default color of blue, third tab has a default color of yellow, so users can easily identify each tab by their color even at first glance.
– Jang Delos Santos
Mar 27 at 12:35
Sounds tricky, but that will not look that good. In Google play app when you click on any tab, colour of tab & app-bar changes after that only. Initially all tabs have green colours.
– Tirth Patel
Mar 27 at 13:15
1
thanks for looking into this, i learned a lot and this is a good start of what i envisioned it to be
– Jang Delos Santos
Mar 28 at 0:41
add a comment |
I got it working by changing primaryColor
in theme
of MaterialApp
, colour of Tab can be changed. So inside build method of MyTabsState
return a MaterialApp
& set it's theme
to a variable currentTabColor.
Declare currentTabColor
in MyTabsState
& set it to Colors.red
Then set onTap
to a callback which returns index of current tab & change state of currentTabColor
using if..else
import 'package:flutter/material.dart';
void main()
runApp(MyTabs());
class MyTabs extends StatefulWidget
@override
MyTabsState createState() => MyTabsState();
class MyTabsState extends State<MyTabs> with SingleTickerProviderStateMixin
TabController controller;
Color currentTabColor;
@override
void initState()
super.initState();
currentTabColor = Colors.red;
controller = TabController(vsync: this, length: 3);
@override
void dispose()
controller.dispose();
super.dispose();
@override
Widget build(BuildContext context)
return MaterialApp(
theme: ThemeData(
primaryColor: currentTabColor,
),
home: Scaffold(
appBar: AppBar(
title: Text('Multi Colored Tab Bar'),
bottom: TabBar(
onTap: (tabIndex)
if (tabIndex == 0)
currentTabColor = Colors.red;
else if (tabIndex == 1)
currentTabColor = Colors.blue;
else
currentTabColor = Colors.green;
setState(()
currentTabColor = currentTabColor;
);
,
controller: controller,
tabs: <Tab>[
Tab(
text: 'First Tab',
),
Tab(text: 'Second Tab'),
Tab(text: 'Third Tab'),
],
),
),
body: TabBarView(
controller: controller,
children: <Widget>[
Scaffold(backgroundColor: Colors.red),
Scaffold(backgroundColor: Colors.blue),
Scaffold(backgroundColor: Colors.green),
],
),
),
);
Output
wow, didn't know it can be played like that, but is it possible to have each tab has their own default color? i mean without pressing anything they already have their own colors, like the first tab has a default color of red, then second tab has a default color of blue, third tab has a default color of yellow, so users can easily identify each tab by their color even at first glance.
– Jang Delos Santos
Mar 27 at 12:35
Sounds tricky, but that will not look that good. In Google play app when you click on any tab, colour of tab & app-bar changes after that only. Initially all tabs have green colours.
– Tirth Patel
Mar 27 at 13:15
1
thanks for looking into this, i learned a lot and this is a good start of what i envisioned it to be
– Jang Delos Santos
Mar 28 at 0:41
add a comment |
I got it working by changing primaryColor
in theme
of MaterialApp
, colour of Tab can be changed. So inside build method of MyTabsState
return a MaterialApp
& set it's theme
to a variable currentTabColor.
Declare currentTabColor
in MyTabsState
& set it to Colors.red
Then set onTap
to a callback which returns index of current tab & change state of currentTabColor
using if..else
import 'package:flutter/material.dart';
void main()
runApp(MyTabs());
class MyTabs extends StatefulWidget
@override
MyTabsState createState() => MyTabsState();
class MyTabsState extends State<MyTabs> with SingleTickerProviderStateMixin
TabController controller;
Color currentTabColor;
@override
void initState()
super.initState();
currentTabColor = Colors.red;
controller = TabController(vsync: this, length: 3);
@override
void dispose()
controller.dispose();
super.dispose();
@override
Widget build(BuildContext context)
return MaterialApp(
theme: ThemeData(
primaryColor: currentTabColor,
),
home: Scaffold(
appBar: AppBar(
title: Text('Multi Colored Tab Bar'),
bottom: TabBar(
onTap: (tabIndex)
if (tabIndex == 0)
currentTabColor = Colors.red;
else if (tabIndex == 1)
currentTabColor = Colors.blue;
else
currentTabColor = Colors.green;
setState(()
currentTabColor = currentTabColor;
);
,
controller: controller,
tabs: <Tab>[
Tab(
text: 'First Tab',
),
Tab(text: 'Second Tab'),
Tab(text: 'Third Tab'),
],
),
),
body: TabBarView(
controller: controller,
children: <Widget>[
Scaffold(backgroundColor: Colors.red),
Scaffold(backgroundColor: Colors.blue),
Scaffold(backgroundColor: Colors.green),
],
),
),
);
Output
I got it working by changing primaryColor
in theme
of MaterialApp
, colour of Tab can be changed. So inside build method of MyTabsState
return a MaterialApp
& set it's theme
to a variable currentTabColor.
Declare currentTabColor
in MyTabsState
& set it to Colors.red
Then set onTap
to a callback which returns index of current tab & change state of currentTabColor
using if..else
import 'package:flutter/material.dart';
void main()
runApp(MyTabs());
class MyTabs extends StatefulWidget
@override
MyTabsState createState() => MyTabsState();
class MyTabsState extends State<MyTabs> with SingleTickerProviderStateMixin
TabController controller;
Color currentTabColor;
@override
void initState()
super.initState();
currentTabColor = Colors.red;
controller = TabController(vsync: this, length: 3);
@override
void dispose()
controller.dispose();
super.dispose();
@override
Widget build(BuildContext context)
return MaterialApp(
theme: ThemeData(
primaryColor: currentTabColor,
),
home: Scaffold(
appBar: AppBar(
title: Text('Multi Colored Tab Bar'),
bottom: TabBar(
onTap: (tabIndex)
if (tabIndex == 0)
currentTabColor = Colors.red;
else if (tabIndex == 1)
currentTabColor = Colors.blue;
else
currentTabColor = Colors.green;
setState(()
currentTabColor = currentTabColor;
);
,
controller: controller,
tabs: <Tab>[
Tab(
text: 'First Tab',
),
Tab(text: 'Second Tab'),
Tab(text: 'Third Tab'),
],
),
),
body: TabBarView(
controller: controller,
children: <Widget>[
Scaffold(backgroundColor: Colors.red),
Scaffold(backgroundColor: Colors.blue),
Scaffold(backgroundColor: Colors.green),
],
),
),
);
Output
answered Mar 27 at 12:16
Tirth PatelTirth Patel
1,1782 gold badges12 silver badges27 bronze badges
1,1782 gold badges12 silver badges27 bronze badges
wow, didn't know it can be played like that, but is it possible to have each tab has their own default color? i mean without pressing anything they already have their own colors, like the first tab has a default color of red, then second tab has a default color of blue, third tab has a default color of yellow, so users can easily identify each tab by their color even at first glance.
– Jang Delos Santos
Mar 27 at 12:35
Sounds tricky, but that will not look that good. In Google play app when you click on any tab, colour of tab & app-bar changes after that only. Initially all tabs have green colours.
– Tirth Patel
Mar 27 at 13:15
1
thanks for looking into this, i learned a lot and this is a good start of what i envisioned it to be
– Jang Delos Santos
Mar 28 at 0:41
add a comment |
wow, didn't know it can be played like that, but is it possible to have each tab has their own default color? i mean without pressing anything they already have their own colors, like the first tab has a default color of red, then second tab has a default color of blue, third tab has a default color of yellow, so users can easily identify each tab by their color even at first glance.
– Jang Delos Santos
Mar 27 at 12:35
Sounds tricky, but that will not look that good. In Google play app when you click on any tab, colour of tab & app-bar changes after that only. Initially all tabs have green colours.
– Tirth Patel
Mar 27 at 13:15
1
thanks for looking into this, i learned a lot and this is a good start of what i envisioned it to be
– Jang Delos Santos
Mar 28 at 0:41
wow, didn't know it can be played like that, but is it possible to have each tab has their own default color? i mean without pressing anything they already have their own colors, like the first tab has a default color of red, then second tab has a default color of blue, third tab has a default color of yellow, so users can easily identify each tab by their color even at first glance.
– Jang Delos Santos
Mar 27 at 12:35
wow, didn't know it can be played like that, but is it possible to have each tab has their own default color? i mean without pressing anything they already have their own colors, like the first tab has a default color of red, then second tab has a default color of blue, third tab has a default color of yellow, so users can easily identify each tab by their color even at first glance.
– Jang Delos Santos
Mar 27 at 12:35
Sounds tricky, but that will not look that good. In Google play app when you click on any tab, colour of tab & app-bar changes after that only. Initially all tabs have green colours.
– Tirth Patel
Mar 27 at 13:15
Sounds tricky, but that will not look that good. In Google play app when you click on any tab, colour of tab & app-bar changes after that only. Initially all tabs have green colours.
– Tirth Patel
Mar 27 at 13:15
1
1
thanks for looking into this, i learned a lot and this is a good start of what i envisioned it to be
– Jang Delos Santos
Mar 28 at 0:41
thanks for looking into this, i learned a lot and this is a good start of what i envisioned it to be
– Jang Delos Santos
Mar 28 at 0:41
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55369005%2fis-there-a-way-to-have-a-multi-colored-tab-bar-in-flutter%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Hello Jang ! can you show us the code where you tried ?
– Mazin Ibrahim
Mar 27 at 5:20
Which kind of multi colored are you going for? Multiple color sections, a color hue, switching colors?
– Niklas
Mar 27 at 7:40
hi, thanks for the response, i added some detailed explanation and some codes, sorry for the confusion.
– Jang Delos Santos
Mar 27 at 10:38