Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "type": "Column",
- "scrolling": true,
- "fillMaxSize": true,
- "useMaterialYouColors": true,
- "children": [
- {
- "type": "Row",
- "paddingTop": 12,
- "paddingStart": 12,
- "paddingEnd": 12,
- "children": [
- {
- "type": "Text",
- "text": "Widget v2 Text Properties Example",
- "textSize": 18,
- "bold": true,
- "align": "Left",
- "backgroundColor": "#000000",
- "fillMaxWidth": true
- }
- ]
- },
- {
- "type": "Row",
- "paddingTop": 12,
- "paddingStart": 12,
- "paddingEnd": 12,
- "children": [
- {
- "type": "Text",
- "text": " • Property: textSize",
- "textSize": 18,
- "bold": true,
- "align": "Left",
- "backgroundColor": "#000000",
- "fillMaxWidth": true
- }
- ]
- },
- {
- "type": "Row",
- "paddingTop": 4,
- "paddingStart": 12,
- "paddingEnd": 12,
- "children": [
- {
- "type": "Text",
- "text": "Text with 14sp",
- "textSize": 14,
- "align": "Left",
- "backgroundColor": "#000000",
- "fillMaxWidth": true
- }
- ]
- },
- {
- "type": "Row",
- "paddingTop": 4,
- "paddingStart": 12,
- "paddingEnd": 12,
- "children": [
- {
- "type": "Text",
- "text": "Text with 16sp",
- "textSize": 16,
- "align": "Left",
- "backgroundColor": "#000000",
- "fillMaxWidth": true
- }
- ]
- },
- {
- "type": "Row",
- "paddingTop": 4,
- "paddingStart": 12,
- "paddingEnd": 12,
- "children": [
- {
- "type": "Text",
- "text": "Text with 18sp",
- "textSize": 18,
- "align": "Left",
- "backgroundColor": "#000000",
- "fillMaxWidth": true
- }
- ]
- },
- {
- "type": "Row",
- "paddingTop": 12,
- "paddingStart": 12,
- "paddingEnd": 12,
- "children": [
- {
- "type": "Text",
- "text": " • Property: bold, italic, underline, linethrough",
- "textSize": 18,
- "bold": true,
- "align": "Left",
- "backgroundColor": "#000000",
- "fillMaxWidth": true
- }
- ]
- },
- {
- "type": "Row",
- "paddingTop": 4,
- "paddingStart": 12,
- "paddingEnd": 12,
- "children": [
- {
- "type": "Text",
- "text": "This is text with bold set to true.",
- "textSize": 14,
- "bold": true,
- "align": "Left",
- "backgroundColor": "#000000",
- "fillMaxWidth": true
- }
- ]
- },
- {
- "type": "Row",
- "paddingTop": 4,
- "paddingStart": 12,
- "paddingEnd": 12,
- "children": [
- {
- "type": "Text",
- "text": "This is text with italic set to true.",
- "textSize": 14,
- "italic": true,
- "align": "Left",
- "backgroundColor": "#000000",
- "fillMaxWidth": true
- }
- ]
- },
- {
- "type": "Row",
- "paddingTop": 4,
- "paddingStart": 12,
- "paddingEnd": 12,
- "children": [
- {
- "type": "Text",
- "text": "This is text with underline set to true.",
- "textSize": 14,
- "underline": true,
- "align": "Left",
- "backgroundColor": "#000000",
- "fillMaxWidth": true
- }
- ]
- },
- {
- "type": "Row",
- "paddingTop": 4,
- "paddingStart": 12,
- "paddingEnd": 12,
- "children": [
- {
- "type": "Text",
- "text": "This is text with linethrough set to true.",
- "textSize": 14,
- "linethrough": true,
- "align": "Left",
- "backgroundColor": "#000000",
- "fillMaxWidth": true
- }
- ]
- },
- {
- "type": "Row",
- "paddingTop": 4,
- "paddingStart": 12,
- "paddingEnd": 12,
- "children": [
- {
- "type": "Text",
- "text": "This is text with italic, underline and linethrough set to true.",
- "textSize": 14,
- "italic": true,
- "underline": true,
- "linethrough": true,
- "align": "Left",
- "backgroundColor": "#000000",
- "fillMaxWidth": true
- }
- ]
- },
- {
- "type": "Row",
- "paddingTop": 12,
- "paddingStart": 12,
- "paddingEnd": 12,
- "children": [
- {
- "type": "Text",
- "text": " • Property: align",
- "textSize": 18,
- "bold": true,
- "align": "Left",
- "backgroundColor": "#000000",
- "fillMaxWidth": true
- }
- ]
- },
- {
- "type": "Row",
- "paddingTop": 4,
- "paddingStart": 12,
- "paddingEnd": 12,
- "children": [
- {
- "type": "Text",
- "text": "Text with align set to Left",
- "textSize": 14,
- "align": "Left",
- "backgroundColor": "#000000",
- "fillMaxWidth": true
- }
- ]
- },
- {
- "type": "Row",
- "paddingTop": 4,
- "paddingStart": 12,
- "paddingEnd": 12,
- "children": [
- {
- "type": "Text",
- "text": "Text with align set to Right",
- "textSize": 14,
- "align": "Right",
- "backgroundColor": "#000000",
- "fillMaxWidth": true
- }
- ]
- },
- {
- "type": "Row",
- "paddingTop": 4,
- "paddingStart": 12,
- "paddingEnd": 12,
- "children": [
- {
- "type": "Text",
- "text": "Text with align set to Center",
- "textSize": 14,
- "align": "Center",
- "backgroundColor": "#000000",
- "fillMaxWidth": true
- }
- ]
- },
- {
- "type": "Row",
- "paddingTop": 4,
- "paddingStart": 12,
- "paddingEnd": 12,
- "children": [
- {
- "type": "Text",
- "text": "Text with align set to End",
- "textSize": 14,
- "align": "End",
- "backgroundColor": "#000000",
- "fillMaxWidth": true
- }
- ]
- },
- {
- "type": "Row",
- "paddingTop": 4,
- "paddingStart": 12,
- "paddingEnd": 12,
- "children": [
- {
- "type": "Text",
- "text": "Text with align set to Start",
- "textSize": 14,
- "align": "Start",
- "backgroundColor": "#000000",
- "fillMaxWidth": true
- }
- ]
- },
- {
- "type": "Row",
- "paddingTop": 12,
- "paddingStart": 12,
- "paddingEnd": 12,
- "children": [
- {
- "type": "Text",
- "text": " • Property: fontFamily",
- "textSize": 18,
- "bold": true,
- "align": "Left",
- "backgroundColor": "#000000",
- "fillMaxWidth": true
- }
- ]
- },
- {
- "type": "Row",
- "paddingTop": 4,
- "paddingStart": 12,
- "paddingEnd": 12,
- "children": [
- {
- "type": "Text",
- "text": "This is text with fontFamily set to Serif.",
- "textSize": 14,
- "fontFamily": "Serif",
- "align": "Left",
- "backgroundColor": "#000000",
- "fillMaxWidth": true
- }
- ]
- },
- {
- "type": "Row",
- "paddingTop": 4,
- "paddingStart": 12,
- "paddingEnd": 12,
- "children": [
- {
- "type": "Text",
- "text": "This is text with fontFamily set to SansSerif.",
- "textSize": 14,
- "fontFamily": "SansSerif",
- "align": "Left",
- "backgroundColor": "#000000",
- "fillMaxSize": true
- }
- ]
- },
- {
- "type": "Row",
- "paddingTop": 4,
- "paddingStart": 12,
- "paddingEnd": 12,
- "children": [
- {
- "type": "Text",
- "text": "This is text with fontFamily set to Monospace.",
- "textSize": 14,
- "fontFamily": "Monospace",
- "align": "Left",
- "backgroundColor": "#000000",
- "fillMaxSize": true
- }
- ]
- },
- {
- "type": "Row",
- "paddingTop": 4,
- "paddingStart": 12,
- "paddingEnd": 12,
- "paddingBottom": 12,
- "children": [
- {
- "type": "Text",
- "text": "This is text with fontFamily set to Cursive.",
- "textSize": 14,
- "fontFamily": "Cursive",
- "align": "Left",
- "backgroundColor": "#000000",
- "fillMaxSize": true
- }
- ]
- }
- ]
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement