Przeglądaj źródła

Prepare release

Anatoly Pulyaevskiy 6 lat temu
rodzic
commit
47ee2f5698

+ 11
- 0
packages/zefyr/CHANGELOG.md Wyświetl plik

@@ -1,3 +1,14 @@
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 12
 ## 0.2.0
2 13
 
3 14
 * Breaking change: `ZefyrImageDelegate.createImageProvider` replaced with

+ 6
- 1
packages/zefyr/example/lib/src/form.dart Wyświetl plik

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

+ 1
- 1
packages/zefyr/lib/src/widgets/theme.dart Wyświetl plik

@@ -172,7 +172,7 @@ class HeadingTheme {
172 172
           height: 1.25,
173 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 177
       level2: StyleTheme(
178 178
         textStyle: TextStyle(

+ 1
- 1
packages/zefyr/pubspec.yaml Wyświetl plik

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