Skip to content

Commit

Permalink
Update Readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
yadaniyil committed Dec 5, 2023
1 parent f767271 commit 3097011
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ dependencies:
```
Attention! In Flutter 3.7 the Badge widget was introduced in the Material library, so to escape the ambiguous imports you need to import the package like this:
```dart
import 'package:badges/badges.dart' as badges;
import "package:badges/badges.dart";
import "package:flutter/material.dart" hide Badge;
```
and then use the "badges.Badge" widget instead of the "Badge" widget. The same for all the classes from this package.
<br>
Expand Down

0 comments on commit 3097011

Please sign in to comment.