56 lines
1.0 KiB
Dart
56 lines
1.0 KiB
Dart
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',
|
|
),
|
|
];
|