|
|
@ -149,7 +149,7 @@ class _TopNavBarComponentState extends State<TopNavBarComponent> with TickerProv
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
ConstrainedBox(
|
|
|
|
ConstrainedBox(
|
|
|
|
constraints: BoxConstraints(maxWidth: 170),
|
|
|
|
constraints: BoxConstraints(maxWidth: 200),
|
|
|
|
child: Column(
|
|
|
|
child: Column(
|
|
|
|
mainAxisAlignment: MainAxisAlignment.start,
|
|
|
|
mainAxisAlignment: MainAxisAlignment.start,
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
@ -171,9 +171,10 @@ class _TopNavBarComponentState extends State<TopNavBarComponent> with TickerProv
|
|
|
|
)),
|
|
|
|
)),
|
|
|
|
Row(
|
|
|
|
Row(
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
GestureDetector(
|
|
|
|
GestureDetector(
|
|
|
|
|
|
|
|
behavior: HitTestBehavior.translucent,
|
|
|
|
onTap: () {
|
|
|
|
onTap: () {
|
|
|
|
if (!choice) {
|
|
|
|
if (!choice) {
|
|
|
|
setState(() {
|
|
|
|
setState(() {
|
|
|
@ -185,17 +186,22 @@ class _TopNavBarComponentState extends State<TopNavBarComponent> with TickerProv
|
|
|
|
child: LayoutBuilder(
|
|
|
|
child: LayoutBuilder(
|
|
|
|
builder: (BuildContext context, BoxConstraints constraints) {
|
|
|
|
builder: (BuildContext context, BoxConstraints constraints) {
|
|
|
|
if (choice) {
|
|
|
|
if (choice) {
|
|
|
|
return AutoSizeText(
|
|
|
|
return Padding(
|
|
|
|
|
|
|
|
padding: const EdgeInsets.only(left: 8, top: 0, right: 8, bottom: 6),
|
|
|
|
|
|
|
|
child: AutoSizeText(
|
|
|
|
"Mes amis",
|
|
|
|
"Mes amis",
|
|
|
|
style: GoogleFonts.plusJakartaSans(
|
|
|
|
style: GoogleFonts.plusJakartaSans(
|
|
|
|
fontWeight: FontWeight.w500, fontSize: 16, color: Colors.white),
|
|
|
|
fontWeight: FontWeight.w500, fontSize: 16, color: Colors.white),
|
|
|
|
|
|
|
|
),
|
|
|
|
);
|
|
|
|
);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
return AutoSizeText(
|
|
|
|
return Padding(
|
|
|
|
|
|
|
|
padding: const EdgeInsets.only(left: 8, top: 0, right: 8, bottom: 6),
|
|
|
|
|
|
|
|
child: AutoSizeText(
|
|
|
|
"Mes amis",
|
|
|
|
"Mes amis",
|
|
|
|
style: GoogleFonts.plusJakartaSans(
|
|
|
|
style: GoogleFonts.plusJakartaSans(
|
|
|
|
fontWeight: FontWeight.w300, fontSize: 16, color: unactiveFeed),
|
|
|
|
fontWeight: FontWeight.w300, fontSize: 16, color: unactiveFeed),
|
|
|
|
);
|
|
|
|
));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
),
|
|
|
|
),
|
|
|
@ -213,17 +219,21 @@ class _TopNavBarComponentState extends State<TopNavBarComponent> with TickerProv
|
|
|
|
child: LayoutBuilder(
|
|
|
|
child: LayoutBuilder(
|
|
|
|
builder: (BuildContext context, BoxConstraints constraints) {
|
|
|
|
builder: (BuildContext context, BoxConstraints constraints) {
|
|
|
|
if (choice) {
|
|
|
|
if (choice) {
|
|
|
|
return AutoSizeText(
|
|
|
|
return Padding(
|
|
|
|
|
|
|
|
padding: const EdgeInsets.only(left: 8, top: 0, right: 8, bottom: 6),
|
|
|
|
|
|
|
|
child: AutoSizeText(
|
|
|
|
"Discovery",
|
|
|
|
"Discovery",
|
|
|
|
style: GoogleFonts.plusJakartaSans(
|
|
|
|
style: GoogleFonts.plusJakartaSans(
|
|
|
|
fontWeight: FontWeight.w300, fontSize: 16, color: unactiveFeed),
|
|
|
|
fontWeight: FontWeight.w300, fontSize: 16, color: unactiveFeed),
|
|
|
|
);
|
|
|
|
));
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
return AutoSizeText(
|
|
|
|
return Padding(
|
|
|
|
|
|
|
|
padding: const EdgeInsets.only(left: 8, top: 0, right: 8, bottom: 6),
|
|
|
|
|
|
|
|
child: AutoSizeText(
|
|
|
|
"Discovery",
|
|
|
|
"Discovery",
|
|
|
|
style: GoogleFonts.plusJakartaSans(
|
|
|
|
style: GoogleFonts.plusJakartaSans(
|
|
|
|
fontWeight: FontWeight.w500, fontSize: 16, color: Colors.white),
|
|
|
|
fontWeight: FontWeight.w500, fontSize: 16, color: Colors.white),
|
|
|
|
);
|
|
|
|
));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
),
|
|
|
|
),
|
|
|
|