feat: inicial estrutura do launcher com grid de mini apps (Notícias, Clima, Notas, Calendário, Calculadora, Galeria)
This commit is contained in:
@@ -0,0 +1,55 @@
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class MiniApp {
|
||||
final String title;
|
||||
final IconData icon;
|
||||
final Color color;
|
||||
final String route; // route name for navigation
|
||||
|
||||
const MiniApp({
|
||||
required this.title,
|
||||
required this.icon,
|
||||
required this.color,
|
||||
required this.route,
|
||||
});
|
||||
}
|
||||
|
||||
// Sample list of mini apps (placeholders for now)
|
||||
List<MiniApp> miniApps = [
|
||||
MiniApp(
|
||||
title: 'Notícias',
|
||||
icon: Icons.newspaper,
|
||||
color: Colors.blue,
|
||||
route: '/news',
|
||||
),
|
||||
MiniApp(
|
||||
title: 'Clima',
|
||||
icon: Icons.wb_sunny,
|
||||
color: Colors.orange,
|
||||
route: '/weather',
|
||||
),
|
||||
MiniApp(
|
||||
title: 'Notas',
|
||||
icon: Icons.note,
|
||||
color: Colors.green,
|
||||
route: '/notes',
|
||||
),
|
||||
MiniApp(
|
||||
title: 'Calendário',
|
||||
icon: Icons.calendar_today,
|
||||
color: Colors.red,
|
||||
route: '/calendar',
|
||||
),
|
||||
MiniApp(
|
||||
title: 'Calculadora',
|
||||
icon: Icons.calculate,
|
||||
color: Colors.purple,
|
||||
route: '/calculator',
|
||||
),
|
||||
MiniApp(
|
||||
title: 'Galeria',
|
||||
icon: Icons.photo_library,
|
||||
color: Colors.teal,
|
||||
route: '/gallery',
|
||||
),
|
||||
];
|
||||
Reference in New Issue
Block a user