68 lines
1.3 KiB
Dart
68 lines
1.3 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,
|
|
});
|
|
}
|
|
|
|
// List of mini apps for the launcher
|
|
List<MiniApp> miniApps = [
|
|
MiniApp(
|
|
title: 'Notícias Trends',
|
|
icon: Icons.trending_up,
|
|
color: Colors.blue,
|
|
route: '/news',
|
|
),
|
|
MiniApp(
|
|
title: 'Campo Minado',
|
|
icon: Icons.gamepad,
|
|
color: Colors.deepPurple,
|
|
route: '/minesweeper',
|
|
),
|
|
MiniApp(
|
|
title: 'Calculadora',
|
|
icon: Icons.calculate,
|
|
color: Colors.orange,
|
|
route: '/calculator',
|
|
),
|
|
MiniApp(
|
|
title: 'Bloco de Notas',
|
|
icon: Icons.note,
|
|
color: Colors.green,
|
|
route: '/notes',
|
|
),
|
|
MiniApp(
|
|
title: 'Conversor de Moedas',
|
|
icon: Icons.currency_exchange,
|
|
color: Colors.teal,
|
|
route: '/currency',
|
|
),
|
|
MiniApp(
|
|
title: 'Criptomoedas',
|
|
icon: Icons.currency_bitcoin,
|
|
color: Colors.amber,
|
|
route: '/crypto',
|
|
),
|
|
MiniApp(
|
|
title: 'Jogo do Dinossauro',
|
|
icon: Icons.directions_run,
|
|
color: Colors.red,
|
|
route: '/dino',
|
|
),
|
|
MiniApp(
|
|
title: 'Jogo da Memória',
|
|
icon: Icons.memory,
|
|
color: Colors.indigo,
|
|
route: '/memory',
|
|
),
|
|
];
|