-
Notifications
You must be signed in to change notification settings - Fork 1
/
main.dart
46 lines (42 loc) · 1.32 KB
/
main.dart
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
import 'package:flutter/material.dart';
import 'package:flutter_native_label/flutter_native_label.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return MaterialApp(
theme: ThemeData.dark(),
home: Scaffold(
appBar: AppBar(
title: const Text('Plugin example app'),
),
body: ListView.builder(
padding: const EdgeInsets.only(top: 16.0, bottom: 16.0),
itemBuilder: (_, index) {
return Container(
margin: const EdgeInsets.all(8.0),
child: NativeLabel(
'''Demo 👍👍👍👍 👍👍👍👍 Multiline 👍👍👍😊😊😊 👍👍👍 '''
'$index ${List.filled(index, '👍').join()}\n',
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(15.0),
color: Colors.white,
),
edgeInsetTop: 10.0,
edgeInsetLeft: 10.0,
edgeInsetBottom: 10.0,
edgeInsetRight: 10.0,
lineSpacing: 20.0,
kern: 5.0,
copyable: true,
),
);
},
),
),
);
}
}