Mitra Profil: WhatsApp + Telegram brand glyphs
Replaces the generic chat_bubble + send Material icons with the official WhatsApp + Telegram glyphs from font_awesome_flutter. Adds the package as a runtime dep; FA brand glyphs are CC BY 4.0 and the package itself is MIT. Visual style is kept consistent with the other rows (pink-soft tile backing, brand-pink glyph fill) rather than full-brand colors — matches the figma's monochrome tile pattern. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||
import 'package:font_awesome_flutter/font_awesome_flutter.dart';
|
||||
import 'package:url_launcher/url_launcher.dart';
|
||||
import '../../core/auth/auth_notifier.dart';
|
||||
import '../../core/theme/halo_tokens.dart';
|
||||
@@ -255,13 +256,13 @@ class _MenuList extends StatelessWidget {
|
||||
return Column(
|
||||
children: [
|
||||
_MenuTile(
|
||||
icon: Icons.chat_bubble_outline,
|
||||
icon: FontAwesomeIcons.whatsapp,
|
||||
label: 'Chat WhatsApp Kami',
|
||||
onTap: onTapWa,
|
||||
),
|
||||
const SizedBox(height: 10),
|
||||
_MenuTile(
|
||||
icon: Icons.send_outlined,
|
||||
icon: FontAwesomeIcons.telegram,
|
||||
label: 'Chat Telegram Kami',
|
||||
onTap: onTapTelegram,
|
||||
),
|
||||
|
||||
@@ -480,6 +480,14 @@ packages:
|
||||
description: flutter
|
||||
source: sdk
|
||||
version: "0.0.0"
|
||||
font_awesome_flutter:
|
||||
dependency: "direct main"
|
||||
description:
|
||||
name: font_awesome_flutter
|
||||
sha256: b9011df3a1fa02993630b8fb83526368cf2206a711259830325bab2f1d2a4eb0
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "10.12.0"
|
||||
freezed_annotation:
|
||||
dependency: transitive
|
||||
description:
|
||||
|
||||
@@ -32,6 +32,9 @@ dependencies:
|
||||
go_router: ^13.2.1
|
||||
flutter_local_notifications: ^21.0.0
|
||||
url_launcher: ^6.3.0
|
||||
# Brand glyphs (WhatsApp, Telegram) for the Profil menu. Material has
|
||||
# no built-in brand icons. Ships an icon font, no SVG plumbing needed.
|
||||
font_awesome_flutter: ^10.7.0
|
||||
|
||||
dev_dependencies:
|
||||
flutter_test:
|
||||
|
||||
Reference in New Issue
Block a user