-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Closed as not planned
Labels
P3Issues that are less important to the Flutter projectIssues that are less important to the Flutter projectc: new featureNothing broken; request for a new capabilityNothing broken; request for a new capabilityc: proposalA detailed proposal for a change to FlutterA detailed proposal for a change to Flutterp: flutter_markdownflutter/packages flutter_markdownflutter/packages flutter_markdownpackageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.r: invalidIssue is closed as not validIssue is closed as not validteam-ecosystemOwned by Ecosystem teamOwned by Ecosystem teamtriaged-ecosystemTriaged by Ecosystem teamTriaged by Ecosystem team
Description
Is there an existing issue for this?
- I have searched the existing issues
- I have read the guide to filing a bug
Use case
When using flutter markdown, the text in the table cell is always aligned to the center of a table cell, horizontally and vertically. It would be my preference to be able to align the text to a specific side of the table cell.
Markdown(
data: """
| | |
|---|---|
| **09.00** | Test thing about this really long column that should wrap when doingstusfff jasijifjsai jgisajgisajigfaj jsaigfjsaigfjsai jgisajijisjgijasigfj |
""",
styleSheet: MarkdownStyleSheet(
codeblockPadding: EdgeInsets.zero,
tableBorder: TableBorder.all(color: Colors.black, width: 0),
tableColumnWidth: IntrinsicColumnWidth(),
tableCellsPadding: EdgeInsets.only(bottom: 10, left: 10),
tableHeadAlign: TextAlign.start,
),
),Proposal
Adding a field to the MarkdownStylesheet for aligning table cell elements
Markdown(
data: """
| | |
|---|---|
| **09.00** | Test thing about this really long column that should wrap when doingstusfff jasijifjsai jgisajgisajigfaj jsaigfjsaigfjsai jgisajijisjgijasigfj |
""",
styleSheet: MarkdownStyleSheet(
codeblockPadding: EdgeInsets.zero,
tableBorder: TableBorder.all(color: Colors.black, width: 0),
tableColumnWidth: IntrinsicColumnWidth(),
tableCellsPadding: EdgeInsets.only(bottom: 10, left: 10),
tableHeadAlign: TextAlign.start,
// Allow aligning content of table cells
tableCellAlignment: Alignment.topCenter,
),
),SbiCA
Metadata
Metadata
Assignees
Labels
P3Issues that are less important to the Flutter projectIssues that are less important to the Flutter projectc: new featureNothing broken; request for a new capabilityNothing broken; request for a new capabilityc: proposalA detailed proposal for a change to FlutterA detailed proposal for a change to Flutterp: flutter_markdownflutter/packages flutter_markdownflutter/packages flutter_markdownpackageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.r: invalidIssue is closed as not validIssue is closed as not validteam-ecosystemOwned by Ecosystem teamOwned by Ecosystem teamtriaged-ecosystemTriaged by Ecosystem teamTriaged by Ecosystem team
