Skip to content

Commit d7a3fb3

Browse files
MacbookMacbook
Macbook
authored and
Macbook
committed
issue eric-taix#42 fixed
1 parent 55c3eb5 commit d7a3fb3

File tree

6 files changed

+502
-146
lines changed

6 files changed

+502
-146
lines changed

README.md

+18
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,24 @@ is displayed as:
101101

102102
![global style](./doc/global-style.png)
103103

104+
105+
### How to add Text with icon
106+
107+
The easiest way is to define one or more properties in a `FluidNavBatStyle` and set this instance
108+
in the `style` property of the `FluidNavBar`:
109+
110+
```dart
111+
FluidNavBar(
112+
icons: [
113+
FluidNavBarIcon(svgPath: "assets/text_nevbar.svg", extras: {'label': 'Home'}),
114+
],
115+
)
116+
```
117+
118+
is displayed as:
119+
120+
![text with icon](./doc/global-style.png)
121+
104122
Properties:
105123

106124
| Property | Description |

example/assets/text_nevbar.svg

+271
Loading

0 commit comments

Comments
 (0)