Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- MaterialApp(
- title: 'Meu
- App Personalizado',
- theme: ThemeData(
- // Cores primárias e secundárias
- primaryColor: Colors.deepPurple,
- accentColor: Colors.orange,
- // Barra de aplicativos
- appBarTheme: AppBarTheme(
- backgroundColor: Colors.deepPurple,
- titleTextStyle: TextStyle(
- color: Colors.white,
- fontSize: 20.0,
- fontWeight: FontWeight.bold,
- ),
- ),
- // Texto
- textTheme: TextTheme(
- headline6: TextStyle(fontSize: 24.0, fontWeight: FontWeight.bold),
- bodyText1: TextStyle(fontSize: 16.0, color: Colors.grey[800]),
- ),
- // Botões
- elevatedButtonTheme: ElevatedButtonThemeData(
- style: ElevatedButton.styleFrom(
- primary: Colors.deepPurple,
- onPrimary: Colors.white,
- shape: RoundedRectangleBorder(
- borderRadius: BorderRadius.circular(10.0),
- ),
- ),
- ),
- // Input
- inputDecorationTheme: InputDecorationTheme(
- filled: true,
- fillColor: Colors.grey[200],
- contentPadding: EdgeInsets.symmetric(horizontal:
- 20.0),
- border: OutlineInputBorder(
- borderRadius: BorderRadius.circular(10.0),
- borderSide: BorderSide.none,
- ),
- ),
- // Fontes
- fontFamily: 'Roboto',
- )
- /*
- Outros exemplos:
- cardTheme: Personaliza a aparência dos cards.
- iconTheme: Personaliza a aparência dos ícones.
- dividerTheme: Personaliza a aparência dos divisores.
- visualDensity: Ajusta a densidade visual dos elementos.
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement