json_table icon indicating copy to clipboard operation
json_table copied to clipboard

title bar and cell border slipped when use with other unicode language

Open singnoi opened this issue 5 years ago • 5 comments

ae1

final response = await http.get("http://www.jupiter.co.th/test/json1.txt");

like this can I fix it by change Alignment or padding of tableCellBuilder ?

singnoi avatar Feb 09 '20 17:02 singnoi

Yes i think in this case you need to provide table cell builder and adjust its height/padding as per required

apgapg avatar Feb 10 '20 03:02 apgapg

I have this issue with Arabic characters, please instruct me in how I can solve this, meaning making all the columns the same height or getting rid of the extra padding that seems to come Arabic characters

mediocre-mayda avatar Feb 14 '20 05:02 mediocre-mayda

Yes i think in this case you need to provide table cell builder and adjust its height/padding as per required

thank you, but this problem still persists I think ( from my rookie experience), the row height of cells in same row would be equal if use the row widget but I'm too new to fix

thank you

singnoi avatar Feb 14 '20 11:02 singnoi

@singnoi Do one thing use table cell builder and use a container of fixed height lets say 70 or 100 . In this way each row cell would be of fixed height and using other language wont affect it

apgapg avatar Feb 14 '20 12:02 apgapg

@singnoi

tableCellBuilder: (value) {
    return Container(
      height: 100,
      padding: EdgeInsets.symmetric(horizontal: 4.0, vertical: 2.0),
      decoration: BoxDecoration(border: Border.all(width: 0.5, color: Colors.grey.withOpacity(0.5))),
      child: Text(
        value,
        textAlign: TextAlign.center,
        style: Theme.of(context).textTheme.display1.copyWith(fontSize: 14.0, color: Colors.grey[900]),
      ),
    );
  }

apgapg avatar Feb 14 '20 12:02 apgapg