@@ -19,8 +19,8 @@ class _DynamicAvatarsViewState extends State<DynamicAvatarsView> {
1919 Text (
2020 "What is a dynamic avatar?" ,
2121 style: Theme .of (context).textTheme.headlineSmall? .copyWith (
22- fontWeight: FontWeight .bold,
23- ),
22+ fontWeight: FontWeight .bold,
23+ ),
2424 ),
2525 Text (
2626 "It's similar as the static avatar, but using an model entity (from layrz_models) "
@@ -33,24 +33,25 @@ class _DynamicAvatarsViewState extends State<DynamicAvatarsView> {
3333 Text (
3434 "How to use it?" ,
3535 style: Theme .of (context).textTheme.headlineSmall? .copyWith (
36- fontWeight: FontWeight .bold,
37- ),
36+ fontWeight: FontWeight .bold,
37+ ),
3838 ),
3939 Text (
4040 "Like the static avatar, to generate an avatar, you will use an utility function drawAvatar, "
4141 "here is an example:" ,
4242 style: Theme .of (context).textTheme.bodyMedium,
4343 ),
4444 const ThemedCodeSnippet (
45- code: "ThemedAvatar(size: 30, dynamicAvatar: Avatar(type: AvatarType.url, "
45+ code:
46+ "ThemedAvatar(size: 30, dynamicAvatar: Avatar(type: AvatarType.url, "
4647 "url: 'https://cdn.layrz.com/resources/layo/layo2.png'))" ,
4748 ),
4849 const SizedBox (height: 10 ),
4950 Text (
5051 "Result:" ,
5152 style: Theme .of (context).textTheme.headlineSmall? .copyWith (
52- fontWeight: FontWeight .bold,
53- ),
53+ fontWeight: FontWeight .bold,
54+ ),
5455 ),
5556 const SizedBox (height: 10 ),
5657 const ThemedAvatar (
@@ -65,8 +66,8 @@ class _DynamicAvatarsViewState extends State<DynamicAvatarsView> {
6566 Text (
6667 "Look at this examples:" ,
6768 style: Theme .of (context).textTheme.bodyLarge? .copyWith (
68- fontWeight: FontWeight .bold,
69- ),
69+ fontWeight: FontWeight .bold,
70+ ),
7071 ),
7172 Text (
7273 "Our functions offers inline documentation, so you can see all the arguments and their types." ,
@@ -79,15 +80,17 @@ class _DynamicAvatarsViewState extends State<DynamicAvatarsView> {
7980 children: [
8081 _buildExampleRow (
8182 avatar: const Avatar (type: AvatarType .none),
82- codeExample: "ThemedAvatar(size: 30, name: 'Example', "
83+ codeExample:
84+ "ThemedAvatar(size: 30, name: 'Example', "
8385 "dynamicAvatar: const Avatar(type: AvatarType.none))" ,
8486 ),
8587 const SizedBox (height: 5 ),
8688 const Divider (),
8789 const SizedBox (height: 5 ),
8890 _buildExampleRow (
8991 avatar: const Avatar (type: AvatarType .url, url: 'https://cdn.layrz.com/resources/layo/layo2.png' ),
90- codeExample: "ThemedAvatar(size: 30, name: 'Example', dynamicAvatar: "
92+ codeExample:
93+ "ThemedAvatar(size: 30, name: 'Example', dynamicAvatar: "
9194 "const Avatar(type: AvatarType.url, url: 'https://cdn.layrz.com/resources/layo/"
9295 "layo2.png'))" ,
9396 ),
@@ -96,15 +99,17 @@ class _DynamicAvatarsViewState extends State<DynamicAvatarsView> {
9699 const SizedBox (height: 5 ),
97100 _buildExampleRow (
98101 avatar: Avatar (type: AvatarType .icon, icon: LayrzIconsClasses .mdiClipboard),
99- codeExample: "ThemedAvatar(size: 30, name: 'Example', dynamicAvatar: "
102+ codeExample:
103+ "ThemedAvatar(size: 30, name: 'Example', dynamicAvatar: "
100104 "Avatar(type: AvatarType.icon, icon: LayrzIconsClasses.mdiClipboard))" ,
101105 ),
102106 const SizedBox (height: 5 ),
103107 const Divider (),
104108 const SizedBox (height: 5 ),
105109 _buildExampleRow (
106110 avatar: const Avatar (type: AvatarType .emoji, emoji: '👍' ),
107- codeExample: "ThemedAvatar(size: 30, name: 'Example', dynamicAvatar: "
111+ codeExample:
112+ "ThemedAvatar(size: 30, name: 'Example', dynamicAvatar: "
108113 "const Avatar(type: AvatarType.emoji, emoji: '👍'))" ,
109114 ),
110115 ],
@@ -144,13 +149,15 @@ class _DynamicAvatarsViewState extends State<DynamicAvatarsView> {
144149 labelText: "Get the code" ,
145150 onTap: () {
146151 Clipboard .setData (ClipboardData (text: codeExample));
147- ThemedSnackbarMessenger .of (context).showSnackbar (ThemedSnackbar (
148- message: "Copied to clipboard" ,
149- icon: LayrzIcons .mdiClipboardCheckOutline,
150- color: Colors .green,
151- ));
152+ ThemedSnackbarMessenger .of (context).showSnackbar (
153+ ThemedSnackbar (
154+ message: "Copied to clipboard" ,
155+ icon: LayrzIcons .mdiClipboardCheckOutline,
156+ color: Colors .green,
157+ ),
158+ );
152159 },
153- )
160+ ),
154161 ],
155162 );
156163 }
0 commit comments