@@ -6,9 +6,10 @@ No matter how complex the layout is and how deep the constraints are, it has alm
6
6
performance as Flex and Stack. When facing complex layouts, it provides better performance,
7
7
flexibility, and a very flat code hierarchy than Flex and Stack. Say no to 'nesting hell'.
8
8
9
- ## It is recommended to use ConstraintLayout at the top level. For moderately complex pages, max 500 FPS performance is promised
9
+ ** It is recommended to use ConstraintLayout at the top level. For moderately complex pages, frame
10
+ rate up to 500 fps.**
10
11
11
- ## If not necessary, try to be relative to the parent layout, so that you can define less id
12
+ ** If not necessary, try to be relative to the parent layout, so that you can define less id. **
12
13
13
14
Warning:
14
15
For layout performance considerations, constraints are always one-way, and there is no two child
@@ -78,7 +79,7 @@ dependencies:
78
79
79
80
` ` ` dart
80
81
import 'package:flutter/material.dart';
81
- import 'package:flutter_constraintlayout/constrait_layout /constraint_layout.dart';
82
+ import 'package:flutter_constraintlayout/src/constraint_layout /constraint_layout.dart';
82
83
83
84
class Example extends StatefulWidget {
84
85
const Example({Key? key}) : super(key: key);
@@ -301,7 +302,7 @@ class ExampleState extends State<Example> {
301
302
302
303
``` dart
303
304
import 'package:flutter/material.dart';
304
- import 'package:flutter_constraintlayout/constrait_layout /constraint_layout.dart';
305
+ import 'package:flutter_constraintlayout/src/constraint_layout /constraint_layout.dart';
305
306
306
307
class GuidelineExample extends StatelessWidget {
307
308
const GuidelineExample({Key? key}) : super(key: key);
@@ -360,7 +361,7 @@ class GuidelineExample extends StatelessWidget {
360
361
361
362
``` dart
362
363
import 'package:flutter/material.dart';
363
- import 'package:flutter_constraintlayout/constrait_layout /constraint_layout.dart';
364
+ import 'package:flutter_constraintlayout/src/constraint_layout /constraint_layout.dart';
364
365
365
366
class BarrierExample extends StatelessWidget {
366
367
const BarrierExample({Key? key}) : super(key: key);
@@ -428,7 +429,7 @@ class BarrierExample extends StatelessWidget {
428
429
429
430
``` dart
430
431
import 'package:flutter/material.dart';
431
- import 'package:flutter_constraintlayout/constrait_layout /constraint_layout.dart';
432
+ import 'package:flutter_constraintlayout/src/constraint_layout /constraint_layout.dart';
432
433
433
434
class BadgeExample extends StatelessWidget {
434
435
const BadgeExample({Key? key}) : super(key: key);
0 commit comments