-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Review Page, fix overflow view in search & review for small device
- Loading branch information
Showing
15 changed files
with
254 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
|
||
import 'package:flutter/material.dart'; | ||
import 'package:indorestaurant/provider/review_provider.dart'; | ||
import 'package:provider/provider.dart'; | ||
|
||
class RestaurantReviewPage extends StatelessWidget { | ||
const RestaurantReviewPage({Key? key}) : super(key: key); | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return Consumer<ReviewProvider>( | ||
builder: (context, state, _) { | ||
if (state.state == ResultState.loading) { | ||
return const Center(child: CircularProgressIndicator( | ||
color: Color(0xFFE07465), | ||
)); | ||
} else { | ||
ScaffoldMessenger.of(context).showSnackBar( | ||
SnackBar( | ||
content: Text( | ||
'${state.state} menambahkan review', | ||
), | ||
duration: const Duration(seconds: 1), | ||
), | ||
); | ||
Navigator.pop(context); | ||
return const Material(child: Text('')); | ||
} | ||
}, | ||
); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import 'package:flutter/material.dart'; | ||
import 'package:indorestaurant/data/api/api_service.dart'; | ||
import 'package:indorestaurant/widget/review_form_page_view.dart'; | ||
import 'package:provider/provider.dart'; | ||
import 'package:indorestaurant/provider/review_provider.dart'; | ||
|
||
class ReviewPage extends StatelessWidget { | ||
static const routeName = '/review_page'; | ||
final String id; | ||
|
||
const ReviewPage({Key? key, required this.id}) : super(key: key); | ||
@override | ||
Widget build(BuildContext context) { | ||
return ChangeNotifierProvider<ReviewProvider>( | ||
create: (_) => ReviewProvider(apiService: ApiService()), | ||
child: ReviewFormPageView(id: id), | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
|
||
|
||
import 'package:flutter/material.dart'; | ||
import 'package:lottie/lottie.dart'; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,4 +26,5 @@ class ErrorState extends StatelessWidget { | |
], | ||
); | ||
} | ||
|
||
} |
Oops, something went wrong.