Skip to content

Commit 351b304

Browse files
authored
Merge pull request #37 from webreinvent/feature/Task-9305-update-code-preview
Feature -> Develop | Task 9305 VaahFlutter Updated code previews
2 parents e5bf4b4 + ae964c4 commit 351b304

File tree

3 files changed

+42
-42
lines changed

3 files changed

+42
-42
lines changed

lib/views/pages/ui/components/buttons/elevated.dart

+14-14
Original file line numberDiff line numberDiff line change
@@ -76,83 +76,83 @@ class ButtonElevatedCode extends StatelessWidget {
7676
verticalMargin4,
7777
const CodePreview(
7878
code: [
79-
'ButtonElevated(",',
79+
'ButtonElevated(',
8080
' onPressed: () {},',
8181
' text: "Info",',
8282
' buttonType: ButtonType.info,',
83-
'),"'
83+
'),'
8484
],
8585
),
8686
verticalMargin8,
8787
Text('Success', style: TextStyles.regular2),
8888
verticalMargin4,
8989
const CodePreview(
9090
code: [
91-
'ButtonElevated(",',
91+
'ButtonElevated(',
9292
' onPressed: () {},',
9393
' text: "Success",',
9494
' buttonType: ButtonType.success,',
95-
'),"'
95+
'),'
9696
],
9797
),
9898
verticalMargin8,
9999
Text('Warning', style: TextStyles.regular2),
100100
verticalMargin4,
101101
const CodePreview(
102102
code: [
103-
'ButtonElevated(",',
103+
'ButtonElevated(',
104104
' onPressed: () {},',
105105
' text: "Warning",',
106106
' buttonType: ButtonType.warning,',
107-
'),"'
107+
'),'
108108
],
109109
),
110110
verticalMargin8,
111111
Text('Danger', style: TextStyles.regular2),
112112
verticalMargin4,
113113
const CodePreview(
114114
code: [
115-
'ButtonElevated(",',
115+
'ButtonElevated(',
116116
' onPressed: () {},',
117117
' text: "Danger",',
118118
' buttonType: ButtonType.danger,',
119-
'),"'
119+
'),'
120120
],
121121
),
122122
verticalMargin8,
123123
Text('Help', style: TextStyles.regular2),
124124
verticalMargin4,
125125
const CodePreview(
126126
code: [
127-
'ButtonElevated(",',
127+
'ButtonElevated(',
128128
' onPressed: () {},',
129129
' text: "Help",',
130130
' buttonType: ButtonType.help,',
131-
'),"'
131+
'),'
132132
],
133133
),
134134
verticalMargin8,
135135
Text('Primary', style: TextStyles.regular2),
136136
verticalMargin4,
137137
const CodePreview(
138138
code: [
139-
'ButtonElevated(",',
139+
'ButtonElevated(',
140140
' onPressed: () {},',
141141
' text: "Primary",',
142142
' buttonType: ButtonType.primary,',
143-
'),"'
143+
'),'
144144
],
145145
),
146146
verticalMargin8,
147147
Text('Secondary', style: TextStyles.regular2),
148148
verticalMargin4,
149149
const CodePreview(
150150
code: [
151-
'ButtonElevated(",',
151+
'ButtonElevated(',
152152
' onPressed: () {},',
153153
' text: "Secondary",',
154154
' buttonType: ButtonType.secondary,',
155-
'),"'
155+
'),'
156156
],
157157
),
158158
],

lib/views/pages/ui/components/buttons/outlined.dart

+14-14
Original file line numberDiff line numberDiff line change
@@ -76,83 +76,83 @@ class ButtonOutlinedCode extends StatelessWidget {
7676
verticalMargin4,
7777
const CodePreview(
7878
code: [
79-
'ButtonOutlined(",',
79+
'ButtonOutlined(',
8080
' onPressed: () {},',
8181
' text: "Info",',
8282
' buttonType: ButtonType.info,',
83-
'),"'
83+
'),'
8484
],
8585
),
8686
verticalMargin8,
8787
Text('Success', style: TextStyles.regular2),
8888
verticalMargin4,
8989
const CodePreview(
9090
code: [
91-
'ButtonOutlined(",',
91+
'ButtonOutlined(',
9292
' onPressed: () {},',
9393
' text: "Success",',
9494
' buttonType: ButtonType.success,',
95-
'),"'
95+
'),'
9696
],
9797
),
9898
verticalMargin8,
9999
Text('Warning', style: TextStyles.regular2),
100100
verticalMargin4,
101101
const CodePreview(
102102
code: [
103-
'ButtonOutlined(",',
103+
'ButtonOutlined(',
104104
' onPressed: () {},',
105105
' text: "Warning",',
106106
' buttonType: ButtonType.warning,',
107-
'),"'
107+
'),'
108108
],
109109
),
110110
verticalMargin8,
111111
Text('Danger', style: TextStyles.regular2),
112112
verticalMargin4,
113113
const CodePreview(
114114
code: [
115-
'ButtonOutlined(",',
115+
'ButtonOutlined(',
116116
' onPressed: () {},',
117117
' text: "Danger",',
118118
' buttonType: ButtonType.danger,',
119-
'),"'
119+
'),'
120120
],
121121
),
122122
verticalMargin8,
123123
Text('Help', style: TextStyles.regular2),
124124
verticalMargin4,
125125
const CodePreview(
126126
code: [
127-
'ButtonOutlined(",',
127+
'ButtonOutlined(',
128128
' onPressed: () {},',
129129
' text: "Help",',
130130
' buttonType: ButtonType.help,',
131-
'),"'
131+
'),'
132132
],
133133
),
134134
verticalMargin8,
135135
Text('Primary', style: TextStyles.regular2),
136136
verticalMargin4,
137137
const CodePreview(
138138
code: [
139-
'ButtonOutlined(",',
139+
'ButtonOutlined(',
140140
' onPressed: () {},',
141141
' text: "Primary",',
142142
' buttonType: ButtonType.primary,',
143-
'),"'
143+
'),'
144144
],
145145
),
146146
verticalMargin8,
147147
Text('Secondary', style: TextStyles.regular2),
148148
verticalMargin4,
149149
const CodePreview(
150150
code: [
151-
'ButtonOutlined(",',
151+
'ButtonOutlined(',
152152
' onPressed: () {},',
153153
' text: "Secondary",',
154154
' buttonType: ButtonType.secondary,',
155-
'),"'
155+
'),'
156156
],
157157
),
158158
],

lib/views/pages/ui/components/buttons/text.dart

+14-14
Original file line numberDiff line numberDiff line change
@@ -76,83 +76,83 @@ class ButtonTextCode extends StatelessWidget {
7676
verticalMargin4,
7777
const CodePreview(
7878
code: [
79-
'ButtonText(",',
79+
'ButtonText(',
8080
' onPressed: () {},',
8181
' text: "Info",',
8282
' buttonType: ButtonType.info,',
83-
'),"'
83+
'),'
8484
],
8585
),
8686
verticalMargin8,
8787
Text('Success', style: TextStyles.regular2),
8888
verticalMargin4,
8989
const CodePreview(
9090
code: [
91-
'ButtonText(",',
91+
'ButtonText(',
9292
' onPressed: () {},',
9393
' text: "Success",',
9494
' buttonType: ButtonType.success,',
95-
'),"'
95+
'),'
9696
],
9797
),
9898
verticalMargin8,
9999
Text('Warning', style: TextStyles.regular2),
100100
verticalMargin4,
101101
const CodePreview(
102102
code: [
103-
'ButtonText(",',
103+
'ButtonText(',
104104
' onPressed: () {},',
105105
' text: "Warning",',
106106
' buttonType: ButtonType.warning,',
107-
'),"'
107+
'),'
108108
],
109109
),
110110
verticalMargin8,
111111
Text('Danger', style: TextStyles.regular2),
112112
verticalMargin4,
113113
const CodePreview(
114114
code: [
115-
'ButtonText(",',
115+
'ButtonText(',
116116
' onPressed: () {},',
117117
' text: "Danger",',
118118
' buttonType: ButtonType.danger,',
119-
'),"'
119+
'),'
120120
],
121121
),
122122
verticalMargin8,
123123
Text('Help', style: TextStyles.regular2),
124124
verticalMargin4,
125125
const CodePreview(
126126
code: [
127-
'ButtonText(",',
127+
'ButtonText(',
128128
' onPressed: () {},',
129129
' text: "Help",',
130130
' buttonType: ButtonType.help,',
131-
'),"'
131+
'),'
132132
],
133133
),
134134
verticalMargin8,
135135
Text('Primary', style: TextStyles.regular2),
136136
verticalMargin4,
137137
const CodePreview(
138138
code: [
139-
'ButtonText(",',
139+
'ButtonText(',
140140
' onPressed: () {},',
141141
' text: "Primary",',
142142
' buttonType: ButtonType.primary,',
143-
'),"'
143+
'),'
144144
],
145145
),
146146
verticalMargin8,
147147
Text('Secondary', style: TextStyles.regular2),
148148
verticalMargin4,
149149
const CodePreview(
150150
code: [
151-
'ButtonText(",',
151+
'ButtonText(',
152152
' onPressed: () {},',
153153
' text: "Secondary",',
154154
' buttonType: ButtonType.secondary,',
155-
'),"'
155+
'),'
156156
],
157157
),
158158
],

0 commit comments

Comments
 (0)