native_widgets 1.0.0+1

  • README.md
  • CHANGELOG.md
  • Example
  • Installing
  • Versions
  • 87

Native Widgets #

  • Native Data Tables...

pub package

A Flutter plugin to show the correct widgets for iOS and Android.

Avoid duplicating code and just write once for supported widgets.

Android will use Material Design and iOS will use Cupertino style widgets.

Usage #

To use this plugin, add native_widgets as a dependency in your pubspec.yaml file.

// Import package
import 'package:native_widgets/native_widgets.dart';

Button #

NativeButton(
    child: Text(
      'BUTTON TEXT HERE',
      textScaleFactor: 1.0,
    ),
    buttonColor: Colors.blue,
    padding: const EdgeInsets.all(10.0), // Add Padding (Optional)
    onPressed: () {
       // BUTTON PRESS ACTION HERE
    },
),

Switch #

bool switchValue = false; // Set Inital Value
void handelChanged(bool value) {
 setState(() {
   switchValue = value; // Update the UI
 });
}
  
NativeSwitch(
    onChanged: handelChanged,
    value: switchValue,
),

Dialog #

// Function to generate the dialog
void showNativeDialog<T>({BuildContext context, Widget child}) {
    showDialog<T>(
      context: context,
      builder: (BuildContext context) => child,
    );
}

// Show the Pop Up
void showNativePopUp(BuildContext context) {
showNativeDialog<null>(
  context: context,
  child: NativeDialog(
    title: "TITLE HERE",
    content:
        'DETAIL HERE',
    actions: <NativeDialogAction>[
      NativeDialogAction(
          text: 'BUTTON 1 TEXT',
          isDestructive: false, // Set True to indicate with red accent
          onPressed: () {
            Navigator.pop(context);
            // BUTTON 1 ACTION
          }),
      NativeDialogAction(
          text: 'BUTTON 2 TEXT',
          isDestructive: false,  // Set True to indicate with red accent
          onPressed: () {
            Navigator.pop(context);
            // BUTTON 2 ACTION
          }),
    ],
  ));
}

Loading Indicator #

NativeLoadingIndicator();

NativeLoadingIndicator(text: Text('Loading...'));

Tab Bar #

int _page = 0;
final _pageController = PageController();

void onPageChanged(int page) {
  setState(() {
    this._page = page;
  });
}

static const _kDuration = const Duration(milliseconds: 300);
static const _kCurve = Curves.ease;

void navigationTapped(int page) {
  _pageController.animateToPage(page, duration: _kDuration, curve: _kCurve);
}

@override
void dispose() {
  _pageController.dispose();
  super.dispose();
}

final List<Widget> _pages = <Widget>[
  ConstrainedBox(
    constraints: const BoxConstraints.expand(),
    child: Page1Widget(), // CHANGE TO YOUR PAGE
  ),
  ConstrainedBox(
    constraints: const BoxConstraints.expand(),
    child: Page2Widget(), // CHANGE TO YOUR PAGE
  ),
  ConstrainedBox(
    constraints: const BoxConstraints.expand(),
    child: Page3Widget(), // CHANGE TO YOUR PAGE
  ),
];

final Widget botNavBar = NativeBottomTabBar(
  currentIndex: _page,
  onTap: navigationTapped,
  activeColor: Colors.blueAccent,
  items: [
    BottomNavigationBarItem(
        icon: Icon(Icons.info),
        title: Text(
          "TAB 1",
          textScaleFactor: 1.0,
        )),
    BottomNavigationBarItem(
        icon: Icon(Icons.info),
        title: Text(
          "TAB 2",
          textScaleFactor: 1.0,
        )),
    BottomNavigationBarItem(
        icon: Icon(Icons.info),
        title: Text(
          "TAB 3",
          textScaleFactor: 1.0,
        )),
  ]);

App Bar #

appBar: NativeAppBar(
  title: Text('Title Here'),
  backgroundColor:
      Platform.isIOS ? null : globals.isDark ? null : Colors.white,
  leading: IconButton(
    icon: Icon(
      Icons.settings,
      color: globals.isDark ? Colors.white : Colors.black,
    ),
    onPressed: () {
      Navigator.pushNamed(context, '/settings');
    },
  ),
  actions: <Widget>[
    IconButton(
      icon: Icon(Icons.delete_sweep,
          color: globals.isDark ? Colors.white : Colors.black),
      onPressed: null,
    ),
    IconButton(
      icon: Icon(Icons.share,
          color: globals.isDark ? Colors.white : Colors.black),
      onPressed: null,
    ),
  ],
),

[1.0.0] - Major Update

  • Refactored Library to use Platfrom Widgets plugin in the backend
  • Added Layout (Mobile, Tablet, Desktop)
  • Added Detailed Example
  • Added Folder Structure to Library for Easy Documentaion
  • Added Cupertino TableViewController, Cell and Search Bar
  • Updated Picker
  • Added Toolbar
  • Added App Bar
  • Added Scaffold
  • Added Text Button
  • Added Icon Button
  • Added Routing
  • Added Segmented Select
  • Updated Bottom Tabs
  • Added Top Navigation
  • Added Main App
  • Added Text Label
  • Added Search Widget
  • Updated Switch
  • Added Confirmation Dialog
  • Updated iOS Dialog with Actions

[0.1.2] - Updated Example

  • Updated Example and New Dart Support

[0.1.1] - Bug Fixes and Breaking Changes

  • Native button will now default to 16.0 padding internal

[0.1.0] - Bug Fixes and Breaking Changes

  • Native button will now use Material Button on Android instead of raised button
  • You can specify android specific options and cupertino ios options
  • There is now internal and external paddign for buttons

[0.0.4] - Bug Fixes

  • Bug Fix for Center Loading Indicator

[0.0.3] - Adding Components

  • Bug Fix for App Bar

[0.0.2] - Adding Components

  • Added App Bar and optional text for Loading Indicator

[0.0.1] - Adding Components

  • Added Button, Switch, Dialog, Loading Indicator, and Tab Bar

example/README.md

get_version_example #

Demonstrates how to use the get_version plugin.

Getting Started #

For help getting started with Flutter, view our online documentation.

Use this package as a library

1. Depend on it

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


dependencies:
  native_widgets: ^1.0.0+1

2. Install it

You can install packages from the command line:

with Flutter:


$ flutter packages get

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

3. Import it

Now in your Dart code, you can use:


import 'package:native_widgets/native_widgets.dart';
  
Version Uploaded Documentation Archive
1.3.1 May 6, 2019 Go to the documentation of native_widgets 1.3.1 Download native_widgets 1.3.1 archive
1.3.0 May 3, 2019 Go to the documentation of native_widgets 1.3.0 Download native_widgets 1.3.0 archive
1.2.0 Apr 6, 2019 Go to the documentation of native_widgets 1.2.0 Download native_widgets 1.2.0 archive
1.0.1 Mar 1, 2019 Go to the documentation of native_widgets 1.0.1 Download native_widgets 1.0.1 archive
1.0.0+4 Feb 19, 2019 Go to the documentation of native_widgets 1.0.0+4 Download native_widgets 1.0.0+4 archive
1.0.0+2 Feb 7, 2019 Go to the documentation of native_widgets 1.0.0+2 Download native_widgets 1.0.0+2 archive
1.0.0+1 Feb 7, 2019 Go to the documentation of native_widgets 1.0.0+1 Download native_widgets 1.0.0+1 archive
0.1.1+1 Jul 27, 2018 Go to the documentation of native_widgets 0.1.1+1 Download native_widgets 0.1.1+1 archive
0.1.1 Jul 27, 2018 Go to the documentation of native_widgets 0.1.1 Download native_widgets 0.1.1 archive
0.1.0 Jul 27, 2018 Go to the documentation of native_widgets 0.1.0 Download native_widgets 0.1.0 archive

All 14 versions...

Popularity:
Describes how popular the package is relative to other packages. [more]
91
Health:
Code health derived from static analysis. [more]
92
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
70
Overall:
Weighted score of the above. [more]
87
Learn more about scoring.

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

  • Dart: 2.3.0
  • pana: 0.12.15
  • Flutter: 1.5.8

Platforms

Detected platforms: Flutter

References Flutter, and has no conflicting libraries.

Health issues and suggestions

Fix lib/utils/ios_search_bar.dart. (-5.48 points)

Analysis of lib/utils/ios_search_bar.dart reported 1 warning, 1 hint:

line 157 col 38: The parameter 'backgroundCursorColor' is required.

line 5 col 7: This class (or a class which this class inherits from) is marked as '@immutable', but one or more of its instance fields are not final: IOSSearchBar._inputKey

Fix lib/scaffold/tab_scaffold.dart. (-1 points)

Analysis of lib/scaffold/tab_scaffold.dart reported 2 hints:

line 27 col 15: Dead code.

line 27 col 15: Avoid empty statements.

Fix lib/common/list_tile.dart. (-0.50 points)

Analysis of lib/common/list_tile.dart reported 1 hint:

line 3 col 7: This class (or a class which this class inherits from) is marked as '@immutable', but one or more of its instance fields are not final: NativeListTile.onTap, NativeListTile.onLongPressed, NativeListTile.selected, NativeListTile.editing

Fix additional 8 files with analysis or formatting issues. (-1.50 points)

Additional issues in the following files:

  • lib/common/routing.dart (1 hint)
  • lib/picker/selection.dart (1 hint)
  • lib/scaffold/list_view_scaffold.dart (1 hint)
  • lib/common/common_tiles/phone_tile.dart (Run flutter format to format lib/common/common_tiles/phone_tile.dart.)
  • lib/common/widget.dart (Run flutter format to format lib/common/widget.dart.)
  • lib/input/date_picker.dart (Run flutter format to format lib/input/date_picker.dart.)
  • lib/scaffold/ios_controllers/navigation_controller.dart (Run flutter format to format lib/scaffold/ios_controllers/navigation_controller.dart.)
  • lib/utils/platform_switch.dart (Run flutter format to format lib/utils/platform_switch.dart.)

Maintenance issues and suggestions

Make sure dartdoc successfully runs on your package's source files. (-10 points)

exitCode: 255 stdout: parsing /tmp/pub-dartlang-dartdocYJMQVN/pkg/lib/common/common_tiles/avatar_title.dart... parsing /tmp/pub-dartlang-dartdocYJMQVN/pkg/lib/common/common_tiles/phone_tile.dart... parsing /tmp/pub-dartlang-dartdocYJMQVN/pkg/lib/common/common_tiles/basic_tile.dart... parsing /tmp/pub-dartlang-dartdocYJMQVN/pkg/lib/common/common_tiles/base_tile.dart... parsing /tmp/pub-dartlang-dartdocYJMQVN/pkg/lib/common/search/material_search_bar.dart... parsing /tmp/pub-dartlang-dartdocYJMQVN/pkg/lib/common/search/cupertino_search_bar.dart... parsing /tmp/pub-dartlang-dartdocYJMQVN/pkg/lib/utils/data_table.dart... parsing /tmp/pub-dartlang-dartdocYJMQVN/pkg/lib/utils/ios_search_bar.dart... parsing /tmp/pub-dartlang-dartdocYJMQVN/pkg/lib/app_bar/cupertino/search.dart... parsing /tmp/pub-dartlang-dartdocYJMQVN/pkg/lib/native_widgets.dart... parsing /tmp/pub-dartlang-dartdocYJMQVN/pkg/lib/scaffold/ios_controllers/navigation_controller.dart... parsing /tmp/pub-dartlang-dartdocYJMQVN/pkg/lib/scaffold/ios_controllers/master_detail_controller/controller.dart... parsing /tmp/pub-dartlang-dartdocYJMQVN/pkg/lib/scaffold/ios_controllers/table_view_controller/controller.dart... parsing /tmp/pub-dartlang-dartdocYJMQVN/pkg/lib/scaffold/ios_controllers/table_view_controller/cell.dart... parsing /flutter/bin/cache/pkg/sky_engine/lib/collection/collection.dart... parsing /flutter/bin/cache/pkg/sky_engine/lib/developer/developer.dart... parsing /flutter/bin/cache/pkg/sky_engine/lib/internal/internal.dart... parsing /flutter/bin/cache/pkg/sky_engine/lib/io/io.dart... parsing /flutter/bin/cache/pkg/sky_engine/lib/isolate/isolate.dart... parsing /flutter/bin/cache/pkg/sky_engine/lib/async/async.dart... [...] parsing /tmp/pub-cache-dirXLWFCO/hosted/pub.dartlang.org/collection-1.14.11/lib/equality.dart... parsing /tmp/pub-cache-dirXLWFCO/hosted/pub.dartlang.org/collection-1.14.11/lib/algorithms.dart... parsing /tmp/pub-cache-dirXLWFCO/hosted/pub.dartlang.org/vector_math-2.0.8/lib/vector_math_lists.dart... parsing /tmp/pub-cache-dirXLWFCO/hosted/pub.dartlang.org/vector_math-2.0.8/lib/vector_math_operations.dart... parsing /tmp/pub-cache-dirXLWFCO/hosted/pub.dartlang.org/vector_math-2.0.8/lib/vector_math_geometry.dart... parsing /tmp/pub-cache-dirXLWFCO/hosted/pub.dartlang.org/vector_math-2.0.8/lib/vector_math.dart... Initialized dartdoc with 490 libraries in 96.9 seconds documenting native_widgets Generating docs for library avatar_title from package:native_widgets/common/common_tiles/avatar_title.dart... Generating docs for library base_tile from package:native_widgets/common/common_tiles/base_tile.dart... Generating docs for library basic_tile from package:native_widgets/common/common_tiles/basic_tile.dart... Generating docs for library cell from package:native_widgets/scaffold/ios_controllers/table_view_controller/cell.dart... Generating docs for library controller from package:native_widgets/scaffold/ios_controllers/master_detail_controller/controller.dart... Generating docs for library controller from package:native_widgets/scaffold/ios_controllers/table_view_controller/controller.dart... Generating docs for library cupertino_search_bar from package:native_widgets/common/search/cupertino_search_bar.dart... Generating docs for library data_table from package:native_widgets/utils/data_table.dart... Generating docs for library ios_search_bar from package:native_widgets/utils/ios_search_bar.dart... Generating docs for library material_search_bar from package:native_widgets/common/search/material_search_bar.dart... Generating docs for library native_widgets from package:native_widgets/native_widgets.dart... Generating docs for library navigation_controller from package:native_widgets/scaffold/ios_controllers/navigation_controller.dart... stderr: Documenting native_widgets... warning: ambiguous reexport of dart-ui.hashList, canonicalization candidates: (native_widgets, cupertino, material, painting, rendering, widgets) -> widgets (confidence 0.000) from dart-ui.hashList: (file:///flutter/bin/cache/pkg/sky_engine/lib/ui/hash_codes.dart:114:5) native_widgets: 0.01000 - name is long (+0.01000) cupertino: 1.010 - embeds package name (+1.000), name is long (+0.01000) material: 1.010 - embeds package name (+1.000), name is long (+0.01000) painting: 1.010 - embeds package name (+1.000), name is long (+0.01000) rendering: 1.010 - embeds package name (+1.000), name is long (+0.01000) widgets: 1.010 - embeds package name (+1.000), name is long (+0.01000) Use {@canonicalFor dart:ui.hashList} in the desired library's documentation to resolve the ambiguity and/or override dartdoc's decision, or structure your package so the reexport is less ambiguous. The symbol will still be referenced in all candidates -- this only controls the location where it will be written and which library will be displayed in navigation for the relevant pages. The flag --ambiguous-reexport-scorer-min-confidence allows you to set the threshold at which this warning will appear. warning: ambiguous reexport of dart-ui.hashValues, canonicalization candidates: (native_widgets, cupertino, material, painting, rendering, widgets) -> widgets (confidence 0.000) from dart-ui.hashValues: (file:///flutter/bin/cache/pkg/sky_engine/lib/ui/hash_codes.dart:42:5) native_widgets: 0.01000 - name is long (+0.01000) cupertino: 1.010 - embeds package name (+1.000), name is long (+0.01000) material: 1.010 - embeds package name (+1.000), name is long (+0.01000) painting: 1.010 - embeds package name (+1.000), name is long (+0.01000) rendering: 1.010 - embeds package name (+1.000), name is long (+0.01000) widgets: 1.010 - embeds package name (+1.000), name is long (+0.01000) warning: ambiguous reexport of dart-ui.VoidCallback, canonicalization candidates: (native_widgets, cupertino, foundation, material, ..., scheduler, widgets) -> widgets (confidence 0.000) from dart-ui.VoidCallback: (file:///flutter/bin/cache/pkg/sky_engine/lib/ui/window.dart:8:9) native_widgets: 0.01000 - name is long (+0.01000) cupertino: 1.010 - embeds package name (+1.000), name is long (+0.01000) foundation: 1.010 - embeds package name (+1.000), name is long (+0.01000) material: 1.010 - embeds package name (+1.000), name is long (+0.01000) painting: 1.010 - embeds package name (+1.000), name is long (+0.01000) rendering: 1.010 - embeds package name (+1.000), name is long (+0.01000) scheduler: 1.010 - embeds package name (+1.000), name is long (+0.01000) widgets: 1.010 - embeds package name (+1.000), name is long (+0.01000) warning: ambiguous reexport of dart-ui.FontWeight, canonicalization candidates: (native_widgets, cupertino, material, painting, rendering, widgets) -> widgets (confidence 0.000) from dart-ui.FontWeight: (file:///flutter/bin/cache/pkg/sky_engine/lib/ui/text.dart:17:7) native_widgets: 0.01000 - name is long (+0.01000) cupertino: 1.010 - embeds package name (+1.000), name is long (+0.01000) material: 1.010 - embeds package name (+1.000), name is long (+0.01000) painting: 1.010 - embeds package name (+1.000), name is long (+0.01000) rendering: 1.010 - embeds package name (+1.000), name is long (+0.01000) widgets: 1.010 - embeds package name (+1.000), name is long (+0.01000) warning: ambiguous reexport of dart-ui.Locale, canonicalization candidates: (native_widgets, cupertino, material, painting, rendering, widgets) -> widgets (confidence 0.000) from dart-ui.Locale: (file:///flutter/bin/cache/pkg/sky_engine/lib/ui/window.dart:136:7) native_widgets: 0.01000 - name is long (+0.01000) cupertino: 1.010 - embeds package name (+1.000), name is long (+0.01000) material: 1.010 - embeds package name (+1.000), name is long (+0.01000) painting: 1.010 - embeds package name (+1.000), name is long (+0.01000) rendering: 1.010 - embeds package name (+1.000), name is long (+0.01000) widgets: 1.010 - embeds package name (+1.000), name is long (+0.01000) warning: ambiguous reexport of dart-ui.Offset, canonicalization candidates: (native_widgets, cupertino, gestures, material, painting, rendering, widgets) -> widgets (confidence 0.000) from dart-ui.Offset: (file:///flutter/bin/cache/pkg/sky_engine/lib/ui/geometry.dart:119:7) native_widgets: 0.01000 - name is long (+0.01000) cupertino: 1.010 - embeds package name (+1.000), name is long (+0.01000) gestures: 1.010 - embeds package name (+1.000), name is long (+0.01000) material: 1.010 - embeds package name (+1.000), name is long (+0.01000) painting: 1.010 - embeds package name (+1.000), name is long (+0.01000) rendering: 1.010 - embeds package name (+1.000), name is long (+0.01000) widgets: 1.010 - embeds package name (+1.000), name is long (+0.01000) warning: ambiguous reexport of dart-ui.Radius, canonicalization candidates: (native_widgets, cupertino, material, painting, rendering, widgets) -> widgets (confidence 0.000) from dart-ui.Radius: (file:///flutter/bin/cache/pkg/sky_engine/lib/ui/geometry.dart:897:7) native_widgets: 0.01000 - name is long (+0.01000) cupertino: 1.010 - embeds package name (+1.000), name is long (+0.01000) material: 1.010 - embeds package name (+1.000), name is long (+0.01000) painting: 1.010 - embeds package name (+1.000), name is long (+0.01000) rendering: 1.010 - embeds package name (+1.000), name is long (+0.01000) widgets: 1.010 - embeds package name (+1.000), name is long (+0.01000) warning: ambiguous reexport of dart-ui.Rect, canonicalization candidates: (native_widgets, cupertino, material, painting, rendering, widgets) -> widgets (confidence 0.000) from dart-ui.Rect: (file:///flutter/bin/cache/pkg/sky_engine/lib/ui/geometry.dart:621:7) native_widgets: 0.01000 - name is long (+0.01000) cupertino: 1.010 - embeds package name (+1.000), name is long (+0.01000) material: 1.010 - embeds package name (+1.000), name is long (+0.01000) painting: 1.010 - embeds package name (+1.000), name is long (+0.01000) rendering: 1.010 - embeds package name (+1.000), name is long (+0.01000) widgets: 1.010 - embeds package name (+1.000), name is long (+0.01000) warning: ambiguous reexport of dart-ui.RRect, canonicalization candidates: (native_widgets, cupertino, material, painting, rendering, widgets) -> widgets (confidence 0.000) from dart-ui.RRect: (file:///flutter/bin/cache/pkg/sky_engine/lib/ui/geometry.dart:1020:7) native_widgets: 0.01000 - name is long (+0.01000) cupertino: 1.010 - embeds package name (+1.000), name is long (+0.01000) material: 1.010 - embeds package name (+1.000), name is long (+0.01000) painting: 1.010 - embeds package name (+1.000), name is long (+0.01000) rendering: 1.010 - embeds package name (+1.000), name is long (+0.01000) widgets: 1.010 - embeds package name (+1.000), name is long (+0.01000) warning: ambiguous reexport of dart-ui.RSTransform, canonicalization candidates: (native_widgets, cupertino, material, painting, rendering, widgets) -> widgets (confidence 0.000) from dart-ui.RSTransform: (file:///flutter/bin/cache/pkg/sky_engine/lib/ui/geometry.dart:1598:7) native_widgets: 0.01000 - name is long (+0.01000) cupertino: 1.010 - embeds package name (+1.000), name is long (+0.01000) material: 1.010 - embeds package name (+1.000), name is long (+0.01000) painting: 1.010 - embeds package name (+1.000), name is long (+0.01000) rendering: 1.010 - embeds package name (+1.000), name is long (+0.01000) widgets: 1.010 - embeds package name (+1.000), name is long (+0.01000) warning: ambiguous reexport of dart-ui.Size, canonicalization candidates: (native_widgets, cupertino, material, painting, rendering, widgets) -> widgets (confidence 0.000) from dart-ui.Size: (file:///flutter/bin/cache/pkg/sky_engine/lib/ui/geometry.dart:347:7) native_widgets: 0.01000 - name is long (+0.01000) cupertino: 1.010 - embeds package name (+1.000), name is long (+0.01000) material: 1.010 - embeds package name (+1.000), name is long (+0.01000) painting: 1.010 - embeds package name (+1.000), name is long (+0.01000) rendering: 1.010 - embeds package name (+1.000), name is long (+0.01000) widgets: 1.010 - embeds package name (+1.000), name is long (+0.01000) warning: ambiguous reexport of dart-ui.TextBox, canonicalization candidates: (native_widgets, cupertino, material, painting, rendering, widgets) -> widgets (confidence 0.000) from dart-ui.TextBox: (file:///flutter/bin/cache/pkg/sky_engine/lib/ui/text.dart:992:7) native_widgets: 0.01000 - name is long (+0.01000) cupertino: 1.010 - embeds package name (+1.000), name is long (+0.01000) material: 1.010 - embeds package name (+1.000), name is long (+0.01000) painting: 1.010 - embeds package name (+1.000), name is long (+0.01000) rendering: 1.010 - embeds package name (+1.000), name is long (+0.01000) widgets: 1.010 - embeds package name (+1.000), name is long (+0.01000) warning: ambiguous reexport of dart-ui.TextDecoration, canonicalization candidates: (native_widgets, cupertino, material, painting, rendering, widgets) -> widgets (confidence 0.000) from dart-ui.TextDecoration: (file:///flutter/bin/cache/pkg/sky_engine/lib/ui/text.dart:148:7) native_widgets: 0.01000 - name is long (+0.01000) cupertino: 1.010 - embeds package name (+1.000), name is long (+0.01000) material: 1.010 - embeds package name (+1.000), name is long (+0.01000) painting: 1.010 - embeds package name (+1.000), name is long (+0.01000) rendering: 1.010 - embeds package name (+1.000), name is long (+0.01000) widgets: 1.010 - embeds package name (+1.000), name is long (+0.01000) warning: ambiguous reexport of dart-ui.TextPosition, canonicalization candidates: (native_widgets, cupertino, material, painting, rendering, services, widgets) -> widgets (confidence 0.000) from dart-ui.TextPosition: (file:///flutter/bin/cache/pkg/sky_engine/lib/ui/text.dart:1136:7) native_widgets: 0.01000 - name is long (+0.01000) cupertino: 1.010 - embeds package name (+1.000), name is long (+0.01000) material: 1.010 - embeds package name (+1.000), name is long (+0.01000) painting: 1.010 - embeds package name (+1.000), name is long (+0.01000) rendering: 1.010 - embeds package name (+1.000), name is long (+0.01000) services: 1.010 - embeds package name (+1.000), name is long (+0.01000) widgets: 1.010 - embeds package name (+1.000), name is long (+0.01000) warning: ambiguous reexport of dart-ui.AppLifecycleState, canonicalization candidates: (native_widgets, cupertino, material, scheduler, widgets) -> widgets (confidence 0.000) from dart-ui.AppLifecycleState: (file:///flutter/bin/cache/pkg/sky_engine/lib/ui/window.dart:40:6) native_widgets: 0.01000 - name is long (+0.01000) cupertino: 1.010 - embeds package name (+1.000), name is long (+0.01000) material: 1.010 - embeds package name (+1.000), name is long (+0.01000) scheduler: 1.010 - embeds package name (+1.000), name is long (+0.01000) widgets: 1.010 - embeds package name (+1.000), name is long (+0.01000) warning: ambiguous reexport of dart-ui.Brightness, canonicalization candidates: (native_widgets, cupertino, material, services) -> services (confidence 0.000) from dart-ui.Brightness: (file:///flutter/bin/cache/pkg/sky_engine/lib/ui/window.dart:988:6) native_widgets: 0.01000 - name is long (+0.01000) cupertino: 1.010 - embeds package name (+1.000), name is long (+0.01000) material: 1.010 - embeds package name (+1.000), name is long (+0.01000) services: 1.010 - embeds package name (+1.000), name is long (+0.01000) warning: ambiguous reexport of dart-ui.FontStyle, canonicalization candidates: (native_widgets, cupertino, material, painting, rendering, widgets) -> widgets (confidence 0.000) from dart-ui.FontStyle: (file:///flutter/bin/cache/pkg/sky_engine/lib/ui/text.dart:8:6) native_widgets: 0.01000 - name is long (+0.01000) cupertino: 1.010 - embeds package name (+1.000), name is long (+0.01000) material: 1.010 - embeds package name (+1.000), name is long (+0.01000) painting: 1.010 - embeds package name (+1.000), name is long (+0.01000) rendering: 1.010 - embeds package name (+1.000), name is long (+0.01000) widgets: 1.010 - embeds package name (+1.000), name is long (+0.01000) warning: ambiguous reexport of dart-ui.TextAffinity, canonicalization candidates: (native_widgets, cupertino, material, painting, rendering, services, widgets) -> widgets (confidence 0.000) from dart-ui.TextAffinity: (file:///flutter/bin/cache/pkg/sky_engine/lib/ui/text.dart:1094:6) native_widgets: 0.01000 - name is long (+0.01000) cupertino: 1.010 - embeds package name (+1.000), name is long (+0.01000) material: 1.010 - embeds package name (+1.000), name is long (+0.01000) painting: 1.010 - embeds package name (+1.000), name is long (+0.01000) rendering: 1.010 - embeds package name (+1.000), name is long (+0.01000) services: 1.010 - embeds package name (+1.000), name is long (+0.01000) widgets: 1.010 - embeds package name (+1.000), name is long (+0.01000) warning: ambiguous reexport of dart-ui.TextAlign, canonicalization candidates: (native_widgets, cupertino, material, painting, rendering, widgets) -> widgets (confidence 0.000) from dart-ui.TextAlign: (file:///flutter/bin/cache/pkg/sky_engine/lib/ui/text.dart:107:6) native_widgets: 0.01000 - name is long (+0.01000) cupertino: 1.010 - embeds package name (+1.000), name is long (+0.01000) material: 1.010 - embeds package name (+1.000), name is long (+0.01000) painting: 1.010 - embeds package name (+1.000), name is long (+0.01000) rendering: 1.010 - embeds package name (+1.000), name is long (+0.01000) widgets: 1.010 - embeds package name (+1.000), name is long (+0.01000) warning: ambiguous reexport of dart-ui.TextBaseline, canonicalization candidates: (native_widgets, cupertino, material, painting, rendering, widgets) -> widgets (confidence 0.000) from dart-ui.TextBaseline: (file:///flutter/bin/cache/pkg/sky_engine/lib/ui/text.dart:139:6) native_widgets: 0.01000 - name is long (+0.01000) cupertino: 1.010 - embeds package name (+1.000), name is long (+0.01000) material: 1.010 - embeds package name (+1.000), name is long (+0.01000) painting: 1.010 - embeds package name (+1.000), name is long (+0.01000) rendering: 1.010 - embeds package name (+1.000), name is long (+0.01000) widgets: 1.010 - embeds package name (+1.000), name is long (+0.01000) warning: ambiguous reexport of dart-ui.TextDecorationStyle, canonicalization candidates: (native_widgets, cupertino, material, painting, rendering, widgets) -> widgets (confidence 0.000) from dart-ui.TextDecorationStyle: (file:///flutter/bin/cache/pkg/sky_engine/lib/ui/text.dart:207:6) native_widgets: 0.01000 - name is long (+0.01000) cupertino: 1.010 - embeds package name (+1.000), name is long (+0.01000) material: 1.010 - embeds package name (+1.000), name is long (+0.01000) painting: 1.010 - embeds package name (+1.000), name is long (+0.01000) rendering: 1.010 - embeds package name (+1.000), name is long (+0.01000) widgets: 1.010 - embeds package name (+1.000), name is long (+0.01000) warning: ambiguous reexport of dart-ui.TextDirection, canonicalization candidates: (native_widgets, cupertino, material, painting, rendering, widgets) -> widgets (confidence 0.000) from dart-ui.TextDirection: (file:///flutter/bin/cache/pkg/sky_engine/lib/ui/text.dart:980:6) native_widgets: 0.01000 - name is long (+0.01000) cupertino: 1.010 - embeds package name (+1.000), name is long (+0.01000) material: 1.010 - embeds package name (+1.000), name is long (+0.01000) painting: 1.010 - embeds package name (+1.000), name is long (+0.01000) rendering: 1.010 - embeds package name (+1.000), name is long (+0.01000) widgets: 1.010 - embeds package name (+1.000), name is long (+0.01000) warning: private API of package:Dart is reexported by libraries in other packages: from E: (file:///flutter/bin/cache/pkg/sky_engine/lib/collection/collections.dart:11:28) referred to by collection: (file:///tmp/pub-cache-dirXLWFCO/hosted/pub.dartlang.org/collection-1.14.11/lib/collection.dart) referred to by dart.pkg.collection.wrappers: (file:///tmp/pub-cache-dirXLWFCO/hosted/pub.dartlang.org/collection-1.14.11/lib/wrappers.dart:7:9) warning: private API of package:Dart is reexported by libraries in other packages: from K: (file:///flutter/bin/cache/pkg/sky_engine/lib/collection/maps.dart:372:27) referred to by collection: (file:///tmp/pub-cache-dirXLWFCO/hosted/pub.dartlang.org/collection-1.14.11/lib/collection.dart) referred to by dart.pkg.collection.wrappers: (file:///tmp/pub-cache-dirXLWFCO/hosted/pub.dartlang.org/collection-1.14.11/lib/wrappers.dart:7:9) warning: private API of package:Dart is reexported by libraries in other packages: from V: (file:///flutter/bin/cache/pkg/sky_engine/lib/collection/maps.dart:372:30) referred to by collection: (file:///tmp/pub-cache-dirXLWFCO/hosted/pub.dartlang.org/collection-1.14.11/lib/collection.dart) referred to by dart.pkg.collection.wrappers: (file:///tmp/pub-cache-dirXLWFCO/hosted/pub.dartlang.org/collection-1.14.11/lib/wrappers.dart:7:9) warning: ambiguous reexport of dart-ui.AccessibilityFeatures, canonicalization candidates: (rendering, semantics) -> semantics (confidence 0.000) from dart-ui.AccessibilityFeatures: (file:///flutter/bin/cache/pkg/sky_engine/lib/ui/window.dart:924:7) rendering: 1.010 - embeds package name (+1.000), name is long (+0.01000) semantics: 1.010 - embeds package name (+1.000), name is long (+0.01000) warning: no canonical library found for avatar_title.CupertinoAvatarListTile.hashCode, not linking, from avatar_title.CupertinoAvatarListTile.hashCode: (file:///flutter/bin/cache/pkg/sky_engine/lib/core/object.dart) warning: no canonical library found for avatar_title.CupertinoAvatarListTile.runtimeType, not linking, from avatar_title.CupertinoAvatarListTile.runtimeType: (file:///flutter/bin/cache/pkg/sky_engine/lib/core/object.dart) warning: no canonical library found for avatar_title.CupertinoAvatarListTile.noSuchMethod, not linking, from avatar_title.CupertinoAvatarListTile.noSuchMethod: (file:///flutter/bin/cache/pkg/sky_engine/lib/core/object.dart:109:20) warning: no canonical library found for avatar_title.CupertinoAvatarListTile.==, not linking, from avatar_title.CupertinoAvatarListTile.==: (file:///flutter/bin/cache/pkg/sky_engine/lib/core/object.dart:60:26) warning: no canonical library found for controller.CupertinoTableViewSection.toString, not linking, from controller.CupertinoTableViewSection.toString: (file:///flutter/bin/cache/pkg/sky_engine/lib/core/object.dart:97:19) warning: unresolved doc reference [new DataRow.byIndex] from data_table.DessertDataSource.getRow: (file:///tmp/pub-dartlang-dartdocYJMQVN/pkg/lib/utils/data_table.dart:95:11) in documentation inherited from data_table_source.DataTableSource.getRow: (file:///flutter/packages/flutter/lib/src/material/data_table_source.dart:36:11) warning: native_widgets has no library level documentation comments, from native_widgets: (file:///tmp/pub-dartlang-dartdocYJMQVN/pkg/lib/native_widgets.dart:1:8) warning: unresolved doc reference [Scaffold] from native_widgets.NativeAppBar.preferredSize: (file:///tmp/pub-dartlang-dartdocYJMQVN/pkg/lib/app_bar/app_bar.dart:36:14) in documentation inherited from preferred_size.PreferredSizeWidget.preferredSize: (file:///flutter/packages/flutter/lib/src/widgets/preferred_size.dart:28:12) warning: unresolved doc reference [Scaffold] from native_widgets.NativeSearchAppBar.preferredSize: (file:///tmp/pub-dartlang-dartdocYJMQVN/pkg/lib/app_bar/search_bar.dart:32:14) in documentation inherited from preferred_size.PreferredSizeWidget.preferredSize: (file:///flutter/packages/flutter/lib/src/widgets/preferred_size.dart:28:12) Unhandled exception: RangeError (start): Invalid value: Only valid value is 0: 1 #0 _StringBase.indexOf (dart:core/runtime/libstring_patch.dart:334:7) #1 String.indexOf (dart:core/runtime/libstring_patch.dart:1024:18) #2 _createLineNumbersMap (package:dartdoc/src/line_number_cache.dart:30:23) #3 LineNumberCache.lineAndColumn.<anonymous closure> (package:dartdoc/src/line_number_cache.dart:47:21) #4 __InternalLinkedHashMap&_HashVMBase&MapMixin&_LinkedHashMapMixin.putIfAbsent (dart:collection/runtime/libcompact_hash.dart:281:23) #5 LineNumberCache.lineAndColumn (package:dartdoc/src/line_number_cache.dart:46:32) #6 ModelElement.lineAndColumn (package:dartdoc/src/model.dart:3504:40) #7 new SourceLinker.fromElement (package:dartdoc/src/source_linker.dart:88:27) #8 ModelElement.sourceHref (package:dartdoc/src/model.dart:3225:25) #9 ModelElement.hasSourceHref (package:dartdoc/src/model.dart:3222:29) #10 _LocalInstanceMirror._invokeGetter (dart:mirrors/runtime/libmirrors_impl.dart:329:76) #11 _LocalInstanceMirror.getField (dart:mirrors/runtime/libmirrors_impl.dart:296:20) #12 Renderer._getNamedProperty (package:mustache/src/renderer.dart:245:29) #13 Renderer.resolveValue (package:mustache/src/renderer.dart:212:16) #14 Renderer._renderSection (package:mustache/src/renderer.dart:120:17) #15 Renderer.visitSection (package:mustache/src/renderer.dart:115:7) #16 SectionNode.accept (package:mustache/src/node.dart:63:43) #17 Renderer.render.<anonymous closure> (package:mustache/src/renderer.dart:58:30) #18 List.forEach (dart:core/runtime/libgrowable_array.dart:278:8) #19 Renderer.render (package:mustache/src/renderer.dart:58:13) #20 Renderer.visitPartial (package:mustache/src/renderer.dart:195:16) #21 PartialNode.accept (package:mustache/src/node.dart:81:43) #22 SectionNode.visitChildren.<anonymous closure> (package:mustache/src/node.dart:66:37) #23 List.forEach (dart:core/runtime/libgrowable_array.dart:278:8) #24 SectionNode.visitChildren (package:mustache/src/node.dart:66:14) #25 Renderer._renderWithValue (package:mustache/src/renderer.dart:184:10) #26 Renderer._renderSection (package:mustache/src/renderer.dart:144:7) #27 Renderer.visitSection (package:mustache/src/renderer.dart:115:7) #28 SectionNode.accept (package:mustache/src/node.dart:63:43) #29 Renderer.render.<anonymous closure> (package:mustache/src/renderer.dart:58:30) #30 List.forEach (dart:core/runtime/libgrowable_array.dart:278:8) #31 Renderer.render (package:mustache/src/renderer.dart:58:13) #32 Template.render (package:mustache/src/template.dart:40:14) #33 Template.renderString (package:mustache/src/template.dart:33:5) #34 HtmlGeneratorInstance._build (package:dartdoc/src/html/html_generator_instance.dart:381:31) #35 HtmlGeneratorInstance.generateLibrary (package:dartdoc/src/html/html_generator_instance.dart:269:5) #36 HtmlGeneratorInstance._generateDocs (package:dartdoc/src/html/html_generator_instance.dart:131:9) #37 HtmlGeneratorInstance.generate (package:dartdoc/src/html/html_generator_instance.dart:36:7) <asynchronous suspension> #38 HtmlGenerator.generate (package:dartdoc/src/html/html_generator.dart:108:23) <asynchronous suspension> #39 Dartdoc.generateDocsBase (package:dartdoc/dartdoc.dart:107:25) <asynchronous suspension> #40 Dartdoc.generateDocs (package:dartdoc/dartdoc.dart:134:43) <asynchronous suspension> #41 main (file:///project/pkg/pub_dartdoc/bin/pub_dartdoc.dart:27:17) <asynchronous suspension> #42 _startIsolate.<anonymous closure> (dart:isolate/runtime/libisolate_patch.dart:298:32) #43 _RawReceivePortImpl._handleMessage (dart:isolate/runtime/libisolate_patch.dart:171:12)

Use constrained dependencies. (-20 points)

The pubspec.yaml contains 6 dependencies without version constraints. Specify version ranges for the following dependencies: flutter_list_drag_and_drop, flutter_platform_widgets, flutter_slidable, flutter_sticky_header, intl, uuid.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.1.0 <3.0.0
flutter 0.0.0
flutter_list_drag_and_drop any 0.1.6
flutter_localizations 0.0.0
flutter_platform_widgets any 0.9.6
flutter_slidable any 0.4.9
flutter_sticky_header any 0.3.4
intl any 0.15.8
uuid any 2.0.1
Transitive dependencies
charcode 1.1.2
collection 1.14.11
convert 2.1.1
crypto 2.0.6
cupertino_icons 0.1.2
meta 1.1.6 1.1.7
path 1.6.2
sky_engine 0.0.99
typed_data 1.1.6
vector_math 2.0.8
Dev dependencies
flutter_test