flutter_native_label
Flutter plugin wrapping UILabel
. This is a workaround for
- flutter/flutter#28894
- flutter/flutter#95644
- flutter/flutter#98342
- flutter/flutter#102484
- flutter/flutter#101569
Only iOS is supported.
Example Usage
Scaffold(
appBar: AppBar(
title: const Text('Infinite list example'),
),
body: CustomScrollView(
slivers: [
SliverList(
delegate: SliverChildBuilderDelegate(
(_, index) {
return Row(
children: [
Flexible(
child: Padding(
padding: const EdgeInsets.all(8.0),
child: NativeLabel(
"a 👍${List.filled(index, '👍aaa').join()}",
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(15.0),
color: Colors.green,
),
edgeInsetLeft: 10.0,
edgeInsetRight: 10.0,
edgeInsetTop: 10.0,
edgeInsetBottom: 10.0,
),
),
),
],
);
},
),
),
],
),
);
Screenshots

