-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
CasterKKK
committed
Dec 14, 2018
1 parent
a0c5fd9
commit f1668ed
Showing
21 changed files
with
1,138 additions
and
413 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,31 @@ | ||
# ![RealWorld Example App](logo.png) | ||
# ![Flutter RealWorld Example App](flutter_realworld.png) | ||
|
||
> ### [YOUR_FRAMEWORK] codebase containing real world examples (CRUD, auth, advanced patterns, etc) that adheres to the [RealWorld](https://github.com/gothinkster/realworld) spec and API. | ||
> ### [Flutter](https://flutter.io/) codebase containing real world examples (CRUD, auth, advanced patterns, etc) that adheres to the [RealWorld](https://github.com/gothinkster/realworld) spec and API. | ||
|
||
### [Demo](https://github.com/gothinkster/realworld) [RealWorld](https://github.com/gothinkster/realworld) | ||
|
||
|
||
This codebase was created to demonstrate a fully fledged fullstack application built with **[YOUR_FRAMEWORK]** including CRUD operations, authentication, routing, pagination, and more. | ||
This codebase was created to demonstrate a fully fledged fullstack application built with [Flutter](https://flutter.io/) including CRUD operations, authentication, routing, pagination, and more. | ||
|
||
We've gone to great lengths to adhere to the **[YOUR_FRAMEWORK]** community styleguides & best practices. | ||
We've gone to great lengths to adhere to the [Flutter](https://flutter.io/) community styleguides & best practices. | ||
|
||
For more information on how to this works with other frontends/backends, head over to the [RealWorld](https://github.com/gothinkster/realworld) repo. | ||
|
||
|
||
# How it works | ||
|
||
> Describe the general architecture of your app here | ||
* Using [Flutter-ReduRx](https://github.com/leocavalcante/Flutter-ReduRx/) for managing State | ||
* Using [flutter_i18n](https://github.com/long1eu/flutter_i18n) for i18n | ||
* English and **Chinese** Locale are supported! | ||
* Infinite ListView inspired by [MARCIN SZAŁEK](https://marcinszalek.pl/flutter/infinite-dynamic-listview/). Good job, dude! | ||
|
||
# Getting started | ||
|
||
> npm install, npm start, etc. | ||
To build this app yourself: | ||
|
||
* [Install Flutter](https://flutter.io/docs/get-started/install) | ||
* Clone this repo and open it with Android Studio (Don't forget to install the Flutter Plugin) | ||
* `flutter packages get` to download the Dart packages | ||
* `flutter build apk` then `flutter install` to install the app in **release mode** to Android device | ||
* Enjoy! |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,24 @@ | ||
import 'package:flutter/material.dart'; | ||
import 'package:flutter_realworld_app/pages/search_result_page.dart'; | ||
|
||
class Chipper extends StatelessWidget { | ||
final String _label; | ||
final bool _canReplaceLastPage; | ||
|
||
const Chipper(this._label, {Key key, bool canReplaceLastPage = false}) | ||
: this._canReplaceLastPage = canReplaceLastPage, | ||
super(key: key); | ||
|
||
@override | ||
Widget build(BuildContext context) => GestureDetector( | ||
onTap: () { | ||
final route = | ||
MaterialPageRoute(builder: (context) => SearchResultPage(_label)); | ||
if (_canReplaceLastPage) | ||
Navigator.pushReplacement(context, route); | ||
else | ||
Navigator.push(context, route); | ||
}, | ||
child: Chip(label: Text(_label)), | ||
); | ||
} |
Oops, something went wrong.