Skip to content

Commit

Permalink
Documentation Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
imshibaji committed May 3, 2022
1 parent c37fa10 commit 81c3c98
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 2 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@ This project is a Flutter application building frameworks. This structure to hel

First download this project after then you get error from ```features/main_app/providers/news_provider.dart``` this file.

Screenhots of Application

| --------------- | ------------------ |
| ![Dark Login Screen](./screenshots/Screenshot_1.png) | ![Light Login Screen](./screenshots/Screenshot_2.png) |
| ![Light News Screen](./screenshots/Screenshot_3.png) | ![Dark News Screen](./screenshots/Screenshot_4.png) |
| --------------- | ------------------- |

### Why it happen?

Config file is missing. So ***rename*** config file from config folder `config/app_config_sample.dart` to `config/app_config.dart`
Expand Down
10 changes: 10 additions & 0 deletions lib/features/auth_mod/controllers/varify_controller.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import 'package:flutter/material.dart';

class VarifyController extends StatelessWidget {
const VarifyController({Key? key}) : super(key: key);

@override
Widget build(BuildContext context) {
return Container();
}
}
2 changes: 1 addition & 1 deletion lib/features/main_app/Screens/mobile/news.dart
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class News extends StatefulWidget {

class _NewsState extends State<News> {
final TextEditingController _controller =
TextEditingController(text: 'Kolkata');
TextEditingController(text: 'Software Development');
NewsProvider? np;

@override
Expand Down
2 changes: 1 addition & 1 deletion lib/features/main_app/providers/news_provider.dart
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class NewsProvider extends ChangeNotifier {

Response res = await _http
.get(ApiEndpoint.news, params: {'q': searchTerm, 'lang': 'en'});
if (res.statusCode == 200) {
if (res.statusCode == 200 && res.statusCode != 429) {
// print(res);
_nrm = NewsResponseModel.fromJson(res.toString());
isLoading = true;
Expand Down
Binary file added screenshots/Screenshot_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/Screenshot_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/Screenshot_3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/Screenshot_4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 81c3c98

Please sign in to comment.