Skip to content

Commit

Permalink
commit 1
Browse files Browse the repository at this point in the history
  • Loading branch information
Minh Đại authored and Minh Đại committed Apr 13, 2023
1 parent 9857884 commit 1bc2727
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
3 changes: 1 addition & 2 deletions lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return GetMaterialApp(
title: 'Test',
debugShowCheckedModeBanner: false,
title: 'Test Git',
defaultTransition: Transition.native,
getPages: AppPages.pages,
);
Expand Down
1 change: 1 addition & 0 deletions lib/models/product/product_detail_extra_model.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ part 'product_detail_extra_model.g.dart';
)

class ProductExtraModel {

final int id;
final String name;
final String min;
Expand Down
1 change: 1 addition & 0 deletions lib/routers/app_pages.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import 'package:test_fluter/routers/app_routes.dart';

class AppPages {
static final pages = [

GetPage(
name: Routes.initial,
page: () => const ProductDetailScreen(),
Expand Down
1 change: 1 addition & 0 deletions lib/services/product/product_detail_repository.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ class ProductDetailRepository {
ProductDetailRepository(this.productProvider);

Future<ProductDetailModel> getProductDetail() async {

final response = await productProvider.getProductDetail();
if (response.status.hasError) {
return Future.error(response.statusText!);
Expand Down

0 comments on commit 1bc2727

Please sign in to comment.