mirror of
https://github.com/PranshulGG/WeatherMaster.git
synced 2026-10-22 02:52:37 -05:00
39 lines
1.1 KiB
Dart
39 lines
1.1 KiB
Dart
import 'package:flutter/material.dart';
|
|
import 'open_links.dart';
|
|
import '../utils/condition_label_map.dart';
|
|
|
|
Widget homeBottomBar(BuildContext context, bool isLight) {
|
|
final textColor = isLight ? Colors.black : Colors.white;
|
|
final commonTextStyle = TextStyle(
|
|
color: textColor,
|
|
fontSize: 18,
|
|
decoration: TextDecoration.underline,
|
|
decorationThickness: 3,
|
|
);
|
|
|
|
return RepaintBoundary(
|
|
child: Padding(
|
|
padding: EdgeInsets.only(
|
|
bottom: MediaQuery.of(context).padding.bottom + 10,
|
|
top: 16,
|
|
),
|
|
child: Row(
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
children: [
|
|
GestureDetector(
|
|
onTap: () => openLink("https://open-meteo.com/"),
|
|
child: Text("Open-Meteo", style: commonTextStyle),
|
|
),
|
|
const SizedBox(width: 4),
|
|
Text("•", style: TextStyle(color: textColor, fontSize: 18)),
|
|
const SizedBox(width: 4),
|
|
GestureDetector(
|
|
onTap: () => openLink("https://www.weatherapi.com/"),
|
|
child: Text("Weatherapi", style: commonTextStyle),
|
|
),
|
|
],
|
|
),
|
|
),
|
|
);
|
|
}
|