Add view and logik

This commit is contained in:
2026-04-01 14:28:38 +02:00
parent bf8fd37e51
commit 122ae48754
30 changed files with 1926 additions and 176 deletions

View File

@@ -0,0 +1,34 @@
import 'package:flutter/material.dart';
Widget buildSecondaryButton({
required BuildContext context,
required IconData icon,
required String label,
required VoidCallback onPressed,
required Color color,
}) {
return ElevatedButton(
onPressed: onPressed,
style: ElevatedButton.styleFrom(
backgroundColor: Colors.white,
foregroundColor: color,
padding: EdgeInsets.symmetric(vertical: 16),
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(12),
side: BorderSide(color: color.withAlpha(30)),
),
elevation: 2,
),
child: Column(
mainAxisSize: MainAxisSize.min,
children: [
Icon(icon, size: 28),
SizedBox(height: 4),
Text(
label,
style: TextStyle(fontSize: 12, fontWeight: FontWeight.w600),
),
],
),
);
}