Skip to content

Commit

Permalink
- catalog.gif updated
Browse files Browse the repository at this point in the history
- catalog example updated
  • Loading branch information
RodrigoBertotti committed Jul 31, 2021
1 parent 4324f2f commit 4a0c7b1
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 23 deletions.
Binary file modified example/catalog/catalog.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
33 changes: 11 additions & 22 deletions example/catalog/lib/CatalogMainPage.dart
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ class _CatalogMainPageState extends State<CatalogMainPage> {
children: <Widget>[
GestureDetector(
child: Icon(Icons.remove, color: snapshot.data,),
onTap: () => removeProduct(id: product.id),
onTap: () => removeProduct(id: product.id!),
),
Container(
width: 300,
Expand Down Expand Up @@ -230,32 +230,21 @@ class _CatalogMainPageState extends State<CatalogMainPage> {
height: 10,
),
_buildConnectAsAdmin(ownClientId: 2, token: 'Bearer efgh'),
SizedBox(
height: 10,
),
SizedBox(height: 10,),
_buildConnectAsAdmin(ownClientId: -1, token: 'Bearer wrong', wrongToken: true),
SizedBox(height: 10,),


Text('product/all'),
buildListenToProducts(route: 'product/all'),

SizedBox(height: 20,),
Text('product/all (duplicated)'),
buildListenToProducts(route: 'product/all'),

Padding(
child: buildListenToProducts(route: 'product/all'),
padding: EdgeInsets.only(top: 10),
),

Padding(
child: Column(
children: [
buildListenToProducts(route: 'product/all')
],
),
padding: EdgeInsets.only(top: 10),
),

Padding(
child: buildListenToProducts(route: 'product/all/reversed'),
padding: EdgeInsets.only(top: 10),
),
SizedBox(height: 20,),
Text('product/all/reversed'),
buildListenToProducts(route: 'product/all/reversed'),

SizedBox(height: 20,),

Expand Down
2 changes: 1 addition & 1 deletion example/catalog/lib/Product.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

class Product{
late final int id;
int? id;
late final String name;
late final int price;

Expand Down

0 comments on commit 4a0c7b1

Please sign in to comment.