demo_app 0.0.1

  • Readme
  • Changelog
  • Installing
  • 44

restaurant_app #

  • This is a demo UI app designed using BLoC pattern and reactive programming for state management. It enoys a flexibility of use and is easily maintainable and scalable. Please make commits where you deem necessary.

[0.0.1] - 2019-11-18 #

  • Changes were made to the pubspec.yaml file to include the version and author.

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:

  demo_app: ^0.0.1

2. Install it

You can install packages from the command line:

with Flutter:

$ flutter pub get

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:demo_app/blocs/bloc_provider.dart';
import 'package:demo_app/blocs/extras_bloc.dart';
import 'package:demo_app/blocs/food_Item_bloc.dart';
import 'package:demo_app/blocs/orders_bloc.dart';
import 'package:demo_app/main.dart';
import 'package:demo_app/models/foodList_model.dart';
import 'package:demo_app/models/foodMap_model.dart';
import 'package:demo_app/models/meal_model.dart';
import 'package:demo_app/models/orders_model.dart';
import 'package:demo_app/pages/edit_orders.dart';
import 'package:demo_app/pages/food_select.dart';
import 'package:demo_app/pages/home.dart';
import 'package:demo_app/pages/orders.dart';
import 'package:demo_app/widgets/add_order.dart';
import 'package:demo_app/widgets/back_button.dart';
import 'package:demo_app/widgets/current_total.dart';
import 'package:demo_app/widgets/edit_order_widget.dart';
import 'package:demo_app/widgets/order_container.dart';
import 'package:demo_app/widgets/order_total.dart';
import 'package:demo_app/widgets/tabChild_widget.dart';
import 'package:demo_app/widgets/tabs.dart';
import 'package:demo_app/widgets/tab_formField.dart';
import 'package:demo_app/widgets/unique_container.dart';
import 'package:demo_app/widgets/view_orders.dart';
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

We analyzed this package on Jun 2, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.8.2
  • pana: 0.13.8-dev
  • Flutter: 1.17.1

Health suggestions

Fix lib/blocs/bloc_provider.dart. (-0.50 points)

Analysis of lib/blocs/bloc_provider.dart reported 1 hint:

line 15 col 40: 'ancestorWidgetOfExactType' is deprecated and shouldn't be used. Use findAncestorWidgetOfExactType instead. This feature was deprecated after v1.12.1..

Format lib/blocs/extras_bloc.dart.

Run flutter format to format lib/blocs/extras_bloc.dart.

Format lib/blocs/food_Item_bloc.dart.

Run flutter format to format lib/blocs/food_Item_bloc.dart.

Fix additional 21 files with analysis or formatting issues.

Additional issues in the following files:

  • lib/blocs/orders_bloc.dart (Run flutter format to format lib/blocs/orders_bloc.dart.)
  • lib/main.dart (Run flutter format to format lib/main.dart.)
  • lib/models/foodList_model.dart (Run flutter format to format lib/models/foodList_model.dart.)
  • lib/models/foodMap_model.dart (Run flutter format to format lib/models/foodMap_model.dart.)
  • lib/models/meal_model.dart (Run flutter format to format lib/models/meal_model.dart.)
  • lib/models/orders_model.dart (Run flutter format to format lib/models/orders_model.dart.)
  • lib/pages/edit_orders.dart (Run flutter format to format lib/pages/edit_orders.dart.)
  • lib/pages/food_select.dart (Run flutter format to format lib/pages/food_select.dart.)
  • lib/pages/home.dart (Run flutter format to format lib/pages/home.dart.)
  • lib/pages/orders.dart (Run flutter format to format lib/pages/orders.dart.)
  • lib/widgets/add_order.dart (Run flutter format to format lib/widgets/add_order.dart.)
  • lib/widgets/back_button.dart (Run flutter format to format lib/widgets/back_button.dart.)
  • lib/widgets/current_total.dart (Run flutter format to format lib/widgets/current_total.dart.)
  • lib/widgets/edit_order_widget.dart (Run flutter format to format lib/widgets/edit_order_widget.dart.)
  • lib/widgets/order_container.dart (Run flutter format to format lib/widgets/order_container.dart.)
  • lib/widgets/order_total.dart (Run flutter format to format lib/widgets/order_total.dart.)
  • lib/widgets/tabChild_widget.dart (Run flutter format to format lib/widgets/tabChild_widget.dart.)
  • lib/widgets/tab_formField.dart (Run flutter format to format lib/widgets/tab_formField.dart.)
  • lib/widgets/tabs.dart (Run flutter format to format lib/widgets/tabs.dart.)
  • lib/widgets/unique_container.dart (Run flutter format to format lib/widgets/unique_container.dart.)
  • lib/widgets/view_orders.dart (Run flutter format to format lib/widgets/view_orders.dart.)

Maintenance issues and suggestions

Support latest dependencies. (-10 points)

The version constraint in pubspec.yaml does not support the latest published versions for 1 dependency (rxdart).

Maintain an example. (-10 points)

Create a short demo in the example/ directory to show how to use this package.

Common filename patterns include main.dart, example.dart, and demo_app.dart. Packages with multiple examples should provide example/

For more information see the pub package layout conventions.

Package is pre-v0.1 release. (-10 points)

While nothing is inherently wrong with versions of 0.0.*, it might mean that the author is still experimenting with the general direction of the API.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.1.0 <3.0.0
cupertino_icons ^0.1.2 0.1.3
flutter 0.0.0
rxdart ^0.22.0 0.22.6 0.24.1
shared_preferences ^0.5.4 0.5.7+3
Transitive dependencies
collection 1.14.12
flutter_web_plugins 0.0.0
meta 1.1.8
shared_preferences_macos 0.0.1+10
shared_preferences_platform_interface 1.0.4
shared_preferences_web 0.1.2+7
sky_engine 0.0.99
typed_data 1.1.6
vector_math 2.0.8
Dev dependencies