Skip to content
This repository has been archived by the owner on Nov 30, 2023. It is now read-only.

Update banner_dart_pad.md #111

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions docs/components/banners_dartpad.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,11 +108,11 @@ class MyHomePage extends StatelessWidget {
content: const Text('Error message text'),
leading: CircleAvatar(child: Icon(Icons.delete)),
actions: [
FlatButton(
TextButton(
child: const Text('ACTION 1'),
onPressed: () {},
),
FlatButton(
TextButton(
child: const Text('ACTION 2'),
onPressed: () {},
),
Expand Down Expand Up @@ -155,11 +155,11 @@ class MyHomePage extends StatelessWidget {
content: const Text('Error message text'),
leading: CircleAvatar(child: Icon(Icons.delete)),
actions: [
FlatButton(
TextButton(
child: const Text('ACTION 1'),
onPressed: () {},
),
FlatButton(
TextButton(
child: const Text('ACTION 2'),
onPressed: () {},
),
Expand Down Expand Up @@ -262,11 +262,11 @@ MaterialBanner(
content: const Text('Error message text'),
leading: CircleAvatar(child: Icon(Icons.delete)),
actions: [
FlatButton(
TextButton(
child: const Text('ACTION 1'),
onPressed: () { },
),
FlatButton(
TextButton(
child: const Text('ACTION 2'),
onPressed: () { },
),
Expand Down Expand Up @@ -309,16 +309,16 @@ class MyApp extends StatelessWidget {
class MyHomePage extends StatelessWidget {
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(title: Text('Banners'),),
appBar: AppBar(title: const Text('Banners'),),
body: MaterialBanner(
content: const Text('Error message text'),
leading: CircleAvatar(child: Icon(Icons.delete)),
actions: [
FlatButton(
TextButton(
child: const Text('ACTION 1'),
onPressed: () { },
),
FlatButton(
TextButton(
child: const Text('ACTION 2'),
onPressed: () { },
),
Expand All @@ -333,7 +333,7 @@ ThemeData _buildShrineTheme() {
return base.copyWith(
colorScheme: _shrineColorScheme,
toggleableActiveColor: shrinePink400,
accentColor: shrineBrown900,
accentColor: shrineBrown900,// this is now deprecated you may use colorSchema
primaryColor: shrinePink100,
primaryColorLight: shrinePink100,
buttonColor: shrinePink100,
Expand Down