flutter_for_web 1.0.0

Use this package as a library

1. Depend on it

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


dependencies:
  flutter_for_web: ^1.0.0

2. Install it

You can install packages from the command line:

with pub:


$ pub get

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

3. Import it

Now in your Dart code, you can use:


import 'package:flutter_for_web/semantics.dart';
import 'package:flutter_for_web/painting.dart';
import 'package:flutter_for_web/foundation.dart';
import 'package:flutter_for_web/services.dart';
import 'package:flutter_for_web/scheduler.dart';
import 'package:flutter_for_web/rendering.dart';
import 'package:flutter_for_web/material.dart';
import 'package:flutter_for_web/io.dart';
import 'package:flutter_for_web/widgets.dart';
import 'package:flutter_for_web/cupertino.dart';
import 'package:flutter_for_web/gestures.dart';
import 'package:flutter_for_web/animation.dart';
import 'package:flutter_for_web/physics.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
69
Health:
Code health derived from static analysis. [more]
1
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
40
Overall:
Weighted score of the above. [more]
43
Learn more about scoring.

We analyzed this package on Oct 16, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.5.1
  • pana: 0.12.21

Platforms

Detected platforms: web

Platform components identified in package: html, js.

Health suggestions

Fix lib/src/rendering/proxy_box.dart. (-21.78 points)

Analysis of lib/src/rendering/proxy_box.dart reported 49 hints, including:

line 163 col 9: DO use curly braces for all flow control structures.

line 216 col 7: DO use curly braces for all flow control structures.

line 220 col 7: DO use curly braces for all flow control structures.

line 228 col 7: DO use curly braces for all flow control structures.

line 232 col 7: DO use curly braces for all flow control structures.

Fix lib/src/widgets/framework.dart. (-13.96 points)

Analysis of lib/src/widgets/framework.dart reported 30 hints, including:

line 286 col 7: DO use curly braces for all flow control structures.

line 1728 col 11: DO use curly braces for all flow control structures.

line 2195 col 9: DO use curly braces for all flow control structures.

line 2214 col 11: DO use curly braces for all flow control structures.

line 2236 col 9: DO use curly braces for all flow control structures.

Fix lib/src/material/input_decorator.dart. (-13.09 points)

Analysis of lib/src/material/input_decorator.dart reported 28 hints, including:

line 265 col 7: DO use curly braces for all flow control structures.

line 267 col 7: DO use curly braces for all flow control structures.

line 269 col 7: DO use curly braces for all flow control structures.

line 763 col 40: DO use curly braces for all flow control structures.

line 769 col 40: DO use curly braces for all flow control structures.

Fix additional 196 files with analysis or formatting issues. (-412.82 points)

Additional issues in the following files:

  • lib/src/rendering/box.dart (26 hints)
  • lib/src/material/tabs.dart (24 hints)
  • lib/src/rendering/editable.dart (24 hints)
  • lib/src/semantics/semantics.dart (18 hints)
  • lib/src/widgets/navigator.dart (17 hints)
  • lib/src/rendering/table.dart (16 hints)
  • lib/src/gestures/multitap.dart (15 hints)
  • lib/src/rendering/object.dart (15 hints)
  • lib/src/widgets/nested_scroll_view.dart (15 hints)
  • lib/src/material/slider_theme.dart (14 hints)
  • lib/src/material/scaffold.dart (13 hints)
  • lib/src/widgets/binding.dart (13 hints)
  • lib/src/foundation/diagnostics.dart (12 hints)
  • lib/src/scheduler/binding.dart (11 hints)
  • lib/src/gestures/lsq_solver.dart (10 hints)
  • lib/src/services/message_codecs.dart (10 hints)
  • lib/src/material/app_bar.dart (9 hints)
  • lib/src/rendering/stack.dart (9 hints)
  • lib/src/widgets/editable_text.dart (9 hints)
  • lib/src/widgets/scroll_physics.dart (9 hints)
  • lib/src/gestures/multidrag.dart (8 hints)
  • lib/src/material/list_tile.dart (8 hints)
  • lib/src/material/mergeable_material.dart (8 hints)
  • lib/src/material/text_selection.dart (8 hints)
  • lib/src/painting/gradient.dart (8 hints)
  • lib/src/painting/text_style.dart (8 hints)
  • lib/src/rendering/list_wheel_viewport.dart (8 hints)
  • lib/io.dart (7 hints)
  • lib/src/animation/curves.dart (7 hints)
  • lib/src/gestures/scale.dart (7 hints)
  • lib/src/material/progress_indicator.dart (7 hints)
  • lib/src/material/stepper.dart (7 hints)
  • lib/src/material/time_picker.dart (7 hints)
  • lib/src/painting/text_painter.dart (7 hints)
  • lib/src/rendering/flex.dart (7 hints)
  • lib/src/rendering/sliver.dart (7 hints)
  • lib/src/rendering/wrap.dart (7 hints)
  • lib/src/widgets/animated_list.dart (7 hints)
  • lib/src/widgets/gesture_detector.dart (7 hints)
  • lib/src/widgets/heroes.dart (7 hints)
  • lib/src/widgets/widget_inspector.dart (7 hints)
  • lib/src/cupertino/action_sheet.dart (6 hints)
  • lib/src/gestures/tap.dart (6 hints)
  • lib/src/material/bottom_navigation_bar.dart (6 hints)
  • lib/src/material/checkbox.dart (6 hints)
  • lib/src/material/expansion_panel.dart (6 hints)
  • lib/src/material/floating_action_button_location.dart (6 hints)
  • lib/src/material/popup_menu.dart (6 hints)
  • lib/src/material/text_field.dart (6 hints)
  • lib/src/rendering/sliver_persistent_header.dart (6 hints)
  • lib/src/widgets/drag_target.dart (6 hints)
  • lib/src/cupertino/route.dart (5 hints)
  • lib/src/gestures/arena.dart (5 hints)
  • lib/src/painting/alignment.dart (5 hints)
  • lib/src/painting/decoration_image.dart (5 hints)
  • lib/src/painting/shape_decoration.dart (5 hints)
  • lib/src/rendering/sliver_multi_box_adaptor.dart (5 hints)
  • lib/src/widgets/animated_cross_fade.dart (5 hints)
  • lib/src/widgets/container.dart (5 hints)
  • lib/src/widgets/dismissible.dart (5 hints)
  • lib/src/widgets/navigation_toolbar.dart (5 hints)
  • lib/src/widgets/ticker_provider.dart (5 hints)
  • lib/src/widgets/will_pop_scope.dart (5 hints)
  • lib/src/gestures/long_press.dart (4 hints)
  • lib/src/gestures/recognizer.dart (4 hints)
  • lib/src/material/button.dart (4 hints)
  • lib/src/material/button_theme.dart (4 hints)
  • lib/src/material/chip.dart (4 hints)
  • lib/src/material/outline_button.dart (4 hints)
  • lib/src/material/refresh_indicator.dart (4 hints)
  • lib/src/material/toggleable.dart (4 hints)
  • lib/src/painting/box_fit.dart (4 hints)
  • lib/src/painting/image_resolution.dart (4 hints)
  • lib/src/painting/strut_style.dart (4 hints)
  • lib/src/rendering/debug_overflow_indicator.dart (4 hints)
  • lib/src/rendering/flow.dart (4 hints)
  • lib/src/rendering/layer.dart (4 hints)
  • lib/src/rendering/shifted_box.dart (4 hints)
  • lib/src/rendering/viewport.dart (4 hints)
  • lib/src/services/platform_messages.dart (4 hints)
  • lib/src/widgets/routes.dart (4 hints)
  • lib/src/widgets/scroll_controller.dart (4 hints)
  • lib/src/widgets/scrollable.dart (4 hints)
  • lib/src/widgets/sliver.dart (4 hints)
  • lib/src/widgets/sliver_prototype_extent_list.dart (4 hints)
  • lib/src/animation/animation_controller.dart (3 hints)
  • lib/src/animation/animations.dart (3 hints)
  • lib/src/foundation/licenses.dart (3 hints)
  • lib/src/foundation/print.dart (3 hints)
  • lib/src/gestures/binding.dart (3 hints)
  • lib/src/gestures/monodrag.dart (3 hints)
  • lib/src/gestures/velocity_tracker.dart (3 hints)
  • lib/src/material/animated_icons/animated_icons.dart (3 hints)
  • lib/src/material/grid_tile_bar.dart (3 hints)
  • lib/src/material/material.dart (3 hints)
  • lib/src/painting/borders.dart (3 hints)
  • lib/src/painting/box_decoration.dart (3 hints)
  • lib/src/painting/box_shadow.dart (3 hints)
  • lib/src/painting/edge_insets.dart (3 hints)
  • lib/src/painting/text_span.dart (3 hints)
  • lib/src/rendering/sliver_grid.dart (3 hints)
  • lib/src/rendering/view.dart (3 hints)
  • lib/src/widgets/app.dart (3 hints)
  • lib/src/widgets/form.dart (3 hints)
  • lib/src/widgets/image.dart (3 hints)
  • lib/src/widgets/implicit_animations.dart (3 hints)
  • lib/src/widgets/page_view.dart (3 hints)
  • lib/src/widgets/scroll_activity.dart (3 hints)
  • lib/src/widgets/semantics_debugger.dart (3 hints)
  • lib/src/widgets/text_selection.dart (3 hints)
  • lib/src/widgets/transitions.dart (3 hints)
  • lib/src/cupertino/activity_indicator.dart (2 hints)
  • lib/src/foundation/bitfield.dart (2 hints)
  • lib/src/material/bottom_sheet.dart (2 hints)
  • lib/src/material/debug.dart (2 hints)
  • lib/src/material/dialog.dart (2 hints)
  • lib/src/material/drawer.dart (2 hints)
  • lib/src/material/icon_button.dart (2 hints)
  • lib/src/material/paginated_data_table.dart (2 hints)
  • lib/src/material/switch.dart (2 hints)
  • lib/src/material/text_form_field.dart (2 hints)
  • lib/src/material/two_level_list.dart (2 hints)
  • lib/src/painting/box_border.dart (2 hints)
  • lib/src/painting/circle_border.dart (2 hints)
  • lib/src/painting/fractional_offset.dart (2 hints)
  • lib/src/painting/geometry.dart (2 hints)
  • lib/src/painting/stadium_border.dart (2 hints)
  • lib/src/physics/spring_simulation.dart (2 hints)
  • lib/src/rendering/image.dart (2 hints)
  • lib/src/scheduler/ticker.dart (2 hints)
  • lib/src/services/platform_views.dart (2 hints)
  • lib/src/services/text_formatter.dart (2 hints)
  • lib/src/widgets/fade_in_image.dart (2 hints)
  • lib/src/widgets/image_icon.dart (2 hints)
  • lib/src/widgets/raw_keyboard_listener.dart (2 hints)
  • lib/src/widgets/scroll_position.dart (2 hints)
  • lib/src/widgets/scrollbar.dart (2 hints)
  • lib/src/widgets/single_child_scroll_view.dart (2 hints)
  • lib/src/widgets/sliver_persistent_header.dart (2 hints)
  • lib/src/widgets/table.dart (2 hints)
  • lib/src/widgets/text.dart (2 hints)
  • lib/src/animation/tween_sequence.dart (1 hint)
  • lib/src/cupertino/app.dart (1 hint)
  • lib/src/foundation/assertions.dart (1 hint)
  • lib/src/foundation/binding.dart (1 hint)
  • lib/src/foundation/key.dart (1 hint)
  • lib/src/foundation/node.dart (1 hint)
  • lib/src/foundation/platform.dart (1 hint)
  • lib/src/foundation/serialization.dart (1 hint)
  • lib/src/gestures/team.dart (1 hint)
  • lib/src/material/about.dart (1 hint)
  • lib/src/material/app.dart (1 hint)
  • lib/src/material/arc.dart (1 hint)
  • lib/src/material/data_table.dart (1 hint)
  • lib/src/material/date_picker.dart (1 hint)
  • lib/src/material/expansion_tile.dart (1 hint)
  • lib/src/material/ink_decoration.dart (1 hint)
  • lib/src/material/ink_ripple.dart (1 hint)
  • lib/src/material/ink_splash.dart (1 hint)
  • lib/src/material/ink_well.dart (1 hint)
  • lib/src/material/input_border.dart (1 hint)
  • lib/src/material/theme.dart (1 hint)
  • lib/src/material/theme_data.dart (1 hint)
  • lib/src/painting/flutter_logo.dart (1 hint)
  • lib/src/painting/image_stream.dart (1 hint)
  • lib/src/painting/matrix_utils.dart (1 hint)
  • lib/src/painting/notched_shapes.dart (1 hint)
  • lib/src/physics/friction_simulation.dart (1 hint)
  • lib/src/rendering/animated_size.dart (1 hint)
  • lib/src/rendering/custom_layout.dart (1 hint)
  • lib/src/rendering/list_body.dart (1 hint)
  • lib/src/rendering/rotated_box.dart (1 hint)
  • lib/src/rendering/sliver_fill.dart (1 hint)
  • lib/src/rendering/sliver_fixed_extent_list.dart (1 hint)
  • lib/src/rendering/sliver_list.dart (1 hint)
  • lib/src/rendering/sliver_padding.dart (1 hint)
  • lib/src/semantics/binding.dart (1 hint)
  • lib/src/semantics/semantics_event.dart (1 hint)
  • lib/src/services/asset_bundle.dart (1 hint)
  • lib/src/services/platform_channel.dart (1 hint)
  • lib/src/services/system_chrome.dart (1 hint)
  • lib/src/services/text_input.dart (1 hint)
  • lib/src/widgets/automatic_keep_alive.dart (1 hint)
  • lib/src/widgets/basic.dart (1 hint)
  • lib/src/widgets/debug.dart (1 hint)
  • lib/src/widgets/icon.dart (1 hint)
  • lib/src/widgets/inherited_model.dart (1 hint)
  • lib/src/widgets/localizations.dart (1 hint)
  • lib/src/widgets/notification_listener.dart (1 hint)
  • lib/src/widgets/overlay.dart (1 hint)
  • lib/src/widgets/platform_view.dart (1 hint)
  • lib/src/widgets/scroll_view.dart (1 hint)
  • lib/src/widgets/visibility.dart (1 hint)
  • lib/src/painting/binding.dart (Run dartfmt to format lib/src/painting/binding.dart.)
  • lib/src/rendering/paragraph.dart (Run dartfmt to format lib/src/rendering/paragraph.dart.)
  • lib/src/widgets/viewport.dart (Run dartfmt to format lib/src/widgets/viewport.dart.)

Maintenance issues and suggestions

Provide a file named README.md. (-30 points)

The README.md file should inform others about your project, what it does, and how they can use it. See the example generated by stagehand.

Provide a file named CHANGELOG.md. (-20 points)

Changelog entries help developers follow the progress of your package. See the example generated by stagehand.

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 flutter_for_web.dart. Packages with multiple examples should provide example/README.md.

For more information see the pub package layout conventions.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.3.0 <3.0.0
collection ^1.0.0 1.14.12
flutter_for_web_ui ^1.0.0 1.0.0
meta ^1.1.5 1.1.7
typed_data ^1.1.6 1.1.6
vector_math ^2.0.7 2.0.8
Transitive dependencies
intl 0.16.0
Dev dependencies
flutter_for_web_test ^1.0.0
mockito >=3.0.0 <=4.0.0
path ^1.6.2 1.6.4
quiver ^2.0.1
test ^1.3.0