Browse Source

Prepare release

Anatoly Pulyaevskiy 6 years ago
parent
commit
47ee2f5698

+ 11
- 0
packages/zefyr/CHANGELOG.md View File

1
+## 0.3.0
2
+
3
+This version introduces new widget `ZefyrScaffold` which allows embedding Zefyr in custom
4
+layouts, like forms with multiple input fields.
5
+
6
+It is now required to always wrap `ZefyrEditor` with an instance of this new widget. See examples
7
+and readme for more details.
8
+
9
+* Breaking change: `ZefyrEditor` requires an ancestor `ZefyrScaffold`.
10
+* Exposed `ZefyrEditor.physics` property to allow customization of `ScrollPhysics`.
11
+
1
 ## 0.2.0
12
 ## 0.2.0
2
 
13
 
3
 * Breaking change: `ZefyrImageDelegate.createImageProvider` replaced with
14
 * Breaking change: `ZefyrImageDelegate.createImageProvider` replaced with

+ 6
- 1
packages/zefyr/example/lib/src/form.dart View File

18
       children: <Widget>[
18
       children: <Widget>[
19
         TextField(decoration: InputDecoration(labelText: 'Name')),
19
         TextField(decoration: InputDecoration(labelText: 'Name')),
20
         TextField(decoration: InputDecoration(labelText: 'Email')),
20
         TextField(decoration: InputDecoration(labelText: 'Email')),
21
+        TextField(
22
+          decoration: InputDecoration(labelText: 'Regular multiline text'),
23
+          maxLines: 5,
24
+        ),
21
         Container(
25
         Container(
22
           padding: EdgeInsets.only(top: 16.0),
26
           padding: EdgeInsets.only(top: 16.0),
23
           child: Text(
27
           child: Text(
24
-            'Description',
28
+            'Zefyr rich text',
25
             style: TextStyle(color: Colors.black54, fontSize: 16.0),
29
             style: TextStyle(color: Colors.black54, fontSize: 16.0),
26
           ),
30
           ),
27
           alignment: Alignment.centerLeft,
31
           alignment: Alignment.centerLeft,
28
         ),
32
         ),
33
+
29
         buildEditor(),
34
         buildEditor(),
30
       ],
35
       ],
31
     );
36
     );

+ 1
- 1
packages/zefyr/lib/src/widgets/theme.dart View File

172
           height: 1.25,
172
           height: 1.25,
173
           fontWeight: FontWeight.w600,
173
           fontWeight: FontWeight.w600,
174
         ),
174
         ),
175
-        padding: EdgeInsets.only(bottom: 16.0),
175
+        padding: EdgeInsets.only(top: 16.0, bottom: 16.0),
176
       ),
176
       ),
177
       level2: StyleTheme(
177
       level2: StyleTheme(
178
         textStyle: TextStyle(
178
         textStyle: TextStyle(

+ 1
- 1
packages/zefyr/pubspec.yaml View File

1
 name: zefyr
1
 name: zefyr
2
 description: Clean, minimalistic and collaboration-ready rich text editor for Flutter.
2
 description: Clean, minimalistic and collaboration-ready rich text editor for Flutter.
3
-version: 0.2.0
3
+version: 0.3.0
4
 author: Anatoly Pulyaevskiy <anatoly.pulyaevskiy@gmail.com>
4
 author: Anatoly Pulyaevskiy <anatoly.pulyaevskiy@gmail.com>
5
 homepage: https://github.com/memspace/zefyr
5
 homepage: https://github.com/memspace/zefyr
6
 
6