Add a launcher app logo + app logo in home page
This commit is contained in:
@ -15,9 +15,8 @@ import 'package:rtime/db/db_helper.dart';
|
||||
import 'package:rtime/pages/flight_detail_page.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
import 'package:rtime/providers/color_provider.dart';
|
||||
|
||||
|
||||
import 'package:rtime/widgets/page_transition_animations.dart';
|
||||
import 'package:flutter_svg/flutter_svg.dart'; // <-- Ajoutez cet import pour SvgPicture
|
||||
|
||||
class HomePage extends StatefulWidget {
|
||||
const HomePage({super.key});
|
||||
@ -50,7 +49,6 @@ class _HomePageState extends State<HomePage> {
|
||||
final l10n = AppLocalizations.of(context)!;
|
||||
final customAccentColor = Provider.of<ColorProvider>(context).accentColor;
|
||||
|
||||
|
||||
return Scaffold(
|
||||
backgroundColor: Theme.of(context).primaryColor,
|
||||
body: RefreshIndicator(
|
||||
@ -67,6 +65,14 @@ class _HomePageState extends State<HomePage> {
|
||||
Row(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
children: [
|
||||
// Nouveau: Ajoutez le SvgPicture ici
|
||||
SvgPicture.asset(
|
||||
'assets/images/rtimelogo.svg', // Chemin vers votre SVG
|
||||
height: 48, // Ajustez la taille selon vos préférences
|
||||
width: 48, // Ajustez la taille selon vos préférences
|
||||
colorFilter: ColorFilter.mode(customAccentColor, BlendMode.srcIn), // Appliquez la couleur d'accentuation
|
||||
),
|
||||
const SizedBox(width: 8), // Petit espace entre le logo et le titre
|
||||
Text(
|
||||
l10n.appTitle,
|
||||
style: TextStyle(
|
||||
@ -76,6 +82,7 @@ class _HomePageState extends State<HomePage> {
|
||||
fontFamily: 'Montserrat',
|
||||
),
|
||||
),
|
||||
const Spacer(), // Cela poussera l'icône de réglages à l'extrémité
|
||||
IconButton(
|
||||
icon:
|
||||
const Icon(Icons.settings, size: 30, color: Colors.white70),
|
||||
@ -91,7 +98,6 @@ class _HomePageState extends State<HomePage> {
|
||||
),
|
||||
const SizedBox(height: 30),
|
||||
|
||||
|
||||
Text(
|
||||
l10n.yourDrones,
|
||||
style: Theme.of(context).textTheme.headlineSmall,
|
||||
@ -194,7 +200,6 @@ class _HomePageState extends State<HomePage> {
|
||||
const Divider(
|
||||
height: 50, thickness: 2, indent: 0, endIndent: 0, color: Colors.white10),
|
||||
|
||||
|
||||
Text(
|
||||
l10n.yourBatteries,
|
||||
style: Theme.of(context).textTheme.headlineSmall,
|
||||
@ -297,7 +302,6 @@ class _HomePageState extends State<HomePage> {
|
||||
const Divider(
|
||||
height: 50, thickness: 2, indent: 0, endIndent: 0, color: Colors.white10),
|
||||
|
||||
|
||||
Text(
|
||||
l10n.latestFlights,
|
||||
style: Theme.of(context).textTheme.headlineSmall,
|
||||
|
||||
Reference in New Issue
Block a user