Created
May 4, 2023 23:24
-
-
Save MelbourneDeveloper/ec6ed9ac17ffeae70bcaa5298ea92359 to your computer and use it in GitHub Desktop.
AppBar Color
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'package:flutter/material.dart'; | |
| void main() => runApp( | |
| MaterialApp( | |
| theme: ThemeData( | |
| brightness: Brightness.light, | |
| useMaterial3: true, | |
| colorScheme: ColorScheme.fromSwatch( | |
| primarySwatch: Colors.blue, | |
| ).copyWith( | |
| primary: Colors.pink, | |
| ), | |
| ), | |
| debugShowCheckedModeBanner: false, | |
| home: Scaffold( | |
| appBar: AppBar(), | |
| body: const SizedBox.shrink(), | |
| ), | |
| ), | |
| ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment