flutter_custom_dialog_dev 0.0.1+1

  • Readme
  • Changelog
  • Example
  • Installing
  • 8

✨ flutter_custom_dialog #

pub package

[Lanuage ~~] English | 中文文档

Global dialog function encapsulation, with a semantic way to fill the content inside the dialog, the current function provided

  1. Support for a few semantic component methods to populate the component content inside dialog
  2. Support for customizing semantic components for developers to freely populate component content inside dialog
  3. Support setting dialog background color, foreground color, position, animation, click the external disappear and other functions, see the details below
  4. Support no Context call dialog, see below

🎖 Installing #

1、install

dependencies:
  flutter_custom_dialog: ^1.0.6

2、import

import 'package:flutter_custom_dialog/flutter_custom_dialog.dart';

🎖 Example #

dialog_demo


divider

body

head&body

listTile

ListRadio

progress

progress&body

bottom sheet

pop menu
✅ Support for custom locations

dialog_gravity


bottom

top

left

right

center

left bottom

left top

right bottom

right top

dialog_animation


scaleIn

fadeIn

rotateIn

customIn
✅ Support for custom animations

⚡ Dialog Property #

dialog property Settings can be called through the method of member variables, as detailed in the following table

YYDialog YYDialogDemo(BuildContext context) {
  return YYDialog().build(context)
    ..width = 220
    ..height = 500
    ..barrierColor = Colors.black.withOpacity(.3)
    ..animatedFunc = (child, animation) {
      return ScaleTransition(
        child: child,
        scale: Tween(begin: 0.0, end: 1.0).animate(animation),
      );
    }
    ..borderRadius = 4.0
    ..show();
}

Supported attributes

propertydescriptiondefault
widthDialog width0
heightDialog heightAdaptive component height
durationDialog animation time250 ms
gravityWhere the dialog appearscenter
gravityAnimationEnableThe dialog appears with the default animation availablefalse
marginThe margin of a dialogEdgeInsets.all(0.0)
barrierColorDialog barrierColor30% of black
backgroundColorDialog backgroundColorwhite
borderRadiusDialog borderRadius0.0
constraintsDialog constraintsno constraints
animatedFuncAnimation of dialogEmerge from the middle
barrierDismissibleWhether to click to pop up the external disappeartrue

Supported method

methoddescription
show[x,y]show dialog
dismissdismiss dialog
isShowingIs the dialog showing

⚡ Semantic Widget #

The contents of the components inside the dialog are encapsulated by semantic functions in advance to quickly build the dialog, as shown in the following table

YYDialog YYAlertDialogWithDivider(BuildContext context) {
  return YYDialog().build(context)
    ..width = 220
    ..borderRadius = 4.0
    ..text(
      padding: EdgeInsets.all(25.0),
      alignment: Alignment.center,
      text: "确定要退出登录吗?",
      color: Colors.black,
      fontSize: 14.0,
      fontWeight: FontWeight.w500,
    )
    ..divider()
    ..doubleButton(
      padding: EdgeInsets.only(top: 10.0),
      gravity: Gravity.center,
      withDivider: true,
      text1: "取消",
      color1: Colors.redAccent,
      fontSize1: 14.0,
      fontWeight1: FontWeight.bold,
      onTap1: () {
        print("取消");
      },
      text2: "确定",
      color2: Colors.redAccent,
      fontSize2: 14.0,
      fontWeight2: FontWeight.bold,
      onTap2: () {
        print("确定");
      },
    )
    ..show();
}

Semantic components supported

methoddescription
texttext widget
doubleButtontwo-button widget
listViewOfListTilelistTile widget
listViewOfRadioButtonlistRadio widget
dividerdivider widget
widgetcustom semantic widget

⚡ Custom Widget #

Customize dialog interior component content

  • Since the existing semantic components only assist in the rapid UI construction, they are far from meeting the requirements in actual project development
  • So it provides the ability to insert custom semantic components into dialog

Insert the component into the dialog through 'widget()'

YYDialog YYDialogDemo(BuildContext context) {
  return YYDialog().build(context)
    ..width = 220
    ..height = 500
    ..widget(
      Padding(
        padding: EdgeInsets.all(0.0),
        child: Align(
          alignment: Alignment.centerLeft,
          child: Text(
            "",
            style: TextStyle(
              color: Colors.black,
              fontSize: 14.0,
              fontWeight: FontWeight.w100,
            ),
          ),
        ),
      ),
    )
    ..show();
}

⚡ Without the Context to invoke #

  • Application scenario: after the network request comes back, there is no Context to refer to in the callback, at this time, the Context needs to be initialized in advance, and then the dialog can be called without the Context

1、init

Call static methods before show dialog YYDialog.init(context);

class AppHome extends StatelessWidget {
  Widget build(BuildContext context) {
    //1、init context
    YYDialog.init(context);
    //2、Subsequent use may not be required context
    ......
  }
}

2、use

direct use YYDialog,Note that it must be called build()

YYDialog YYAlertDialogBody() {
  return YYDialog().build()
    ..width = 240
    ..text(
      text: "Hello YYDialog",
      color: Colors.grey[700],
    )
    ..show();
}

Bugs/Requests #

  • If your application has problems, please submit your code and effect to Issue.
  • Pull request are also welcome.

About #

  • QQ:510402535
  • QQ群:798874340
  • e-mail:xyj510402535@qq.com
  • g-mail:xyj51042535@gmail.com
  • Blog:http://blog.csdn.net/qq_30379689
  • Github:https://github.com/AndroidHensen

License #

Apache License 2.0

0.0.1+1 #

  • initial release.

example/lib/main.dart

library flutter_custom_dialog;

import 'package:flutter/material.dart';
import 'package:flutter_custom_dialog/components/example/alert_dialog.dart';
import 'package:flutter_custom_dialog/components/example/bottom_sheet_dialog.dart';
import 'package:flutter_custom_dialog/components/example/listview_dialog.dart';
import 'package:flutter_custom_dialog/components/example/progress_dialog.dart';
import 'package:flutter_custom_dialog/flutter_custom_dialog.dart';

void main() => runApp(MyApp());

var titleTextStyle = TextStyle(fontSize: 22, color: Colors.black);

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: AppHome(),
    );
  }
}

/*
 * When you init App, you can Initialize YYDialog so that use YYDialog.build().show() everywhere.
 */
class AppHome extends StatelessWidget {
  Widget build(BuildContext context) {
    //1、初始化context
    YYDialog.init(context);
    //2、后续使用可以不需要context
    return Scaffold(
      appBar: AppBar(),
      body: SingleChildScrollView(
        child: Column(
          children: <Widget>[
            showAlertDialog(context),
            showDevelopDialog(context),
          ],
        ),
      ),
    );
  }
}

showAlertDialog(BuildContext context) {
  return Padding(
    padding: EdgeInsets.all(8.0),
    child: Column(
      crossAxisAlignment: CrossAxisAlignment.start,
      children: <Widget>[
        Text("YYAlertDialog", style: titleTextStyle),
        Text("1、demo"),
        Row(
          children: <Widget>[
            makeTextButton("body", () {
              YYAlertDialogBody();
            }),
            makeTextButton("head&body", () {
              YYAlertDialogHeadAndBody();
            }),
            makeTextButton("divider", () {
              YYAlertDialogWithDivider();
            }),
            makeTextButton("listTile", () {
              YYListViewDialogListTile();
            }),
            makeTextButton("listRadio", () {
              YYListViewDialogListRadio();
            }),
          ],
        ),
        Row(
          children: <Widget>[
            makeTextButton("bottomsheet", () {
              YYBottomSheetDialog();
            }),
            makeTextButton("progress", () {
              YYProgressDialogNoBody();
            }),
            makeTextButton("progress\n&body", () {
              YYProgressDialogBody();
            }),
            makeTextButton("pop\nmenu", () {
              YYAlertDialogPopMenu();
            }),
            makeTextButton("custom\nx&y", () {
              YYAlertDialogCustomXY();
            }),
          ],
        ),
        Text("2、dialog property"),
        Row(
          children: <Widget>[
            makeTextButton("duration", () {
              YYAlertDialogWithDuration();
            }),
            makeTextButton("barrier\ncolor", () {
              YYAlertDialogWithbarrierColor(Colors.redAccent);
            }),
            makeTextButton("transparent\ncolor", () {
              YYAlertDialogWithbarrierColor(Colors.transparent);
            }),
            makeTextButton("background\ncolor", () {
              YYAlertDialogWithBackgroundColor();
            }),
            makeTextButton("barrier\ndismiss", () {
              YYAlertDialogWithBarrierDismiss();
            }),
          ],
        ),
        Text("3、dialog gravity"),
        Row(
          children: <Widget>[
            makeTextButton("bottom", () {
              YYAlertDialogWithGravity(
                gravity: Gravity.bottom,
              );
            }),
            makeTextButton("top", () {
              YYAlertDialogWithGravity(
                gravity: Gravity.top,
              );
            }),
            makeTextButton("left", () {
              YYAlertDialogWithGravity(
                width: 250.0,
                gravity: Gravity.left,
              );
            }),
            makeTextButton("right", () {
              YYAlertDialogWithGravity(
                width: 250.0,
                gravity: Gravity.right,
              );
            }),
            makeTextButton("center", () {
              YYAlertDialogWithGravity(
                width: 250.0,
                gravity: Gravity.center,
              );
            }),
          ],
        ),
        Row(
          children: <Widget>[
            makeTextButton("left\nbottom", () {
              YYAlertDialogWithGravity(
                width: 250.0,
                gravity: Gravity.leftBottom,
              );
            }),
            makeTextButton("left\ntop", () {
              YYAlertDialogWithGravity(
                width: 250.0,
                gravity: Gravity.leftTop,
              );
            }),
            makeTextButton("right\nbottom", () {
              YYAlertDialogWithGravity(
                width: 250.0,
                gravity: Gravity.rightBottom,
              );
            }),
            makeTextButton("right\ntop", () {
              YYAlertDialogWithGravity(
                width: 250.0,
                gravity: Gravity.rightTop,
              );
            }),
          ],
        ),
        Text("4、double button gravity"),
        Row(
          children: <Widget>[
            makeTextButton("left", () {
              YYAlertDialogWithGravity(
                width: 250.0,
                doubleButtonGravity: Gravity.left,
              );
            }),
            makeTextButton("right", () {
              YYAlertDialogWithGravity(
                width: 250.0,
                doubleButtonGravity: Gravity.right,
              );
            }),
            makeTextButton("center", () {
              YYAlertDialogWithGravity(
                width: 250.0,
                doubleButtonGravity: Gravity.center,
              );
            }),
          ],
        ),
        Text("5、dialog animation"),
        Row(
          children: <Widget>[
            makeTextButton("scaleIn", () {
              YYAlertDialogWithScaleIn();
            }),
            makeTextButton("fadeIn", () {
              YYAlertDialogWithFadeIn();
            }),
            makeTextButton("rotateIn", () {
              YYAlertDialogWithRotateIn();
            }),
            makeTextButton("customIn", () {
              YYAlertDialogWithCustomIn();
            }),
          ],
        ),
      ],
    ),
  );
}

showDevelopDialog(BuildContext context) {
  YYDialog yyDialog;

  return Padding(
    padding: EdgeInsets.all(8.0),
    child: Column(
      crossAxisAlignment: CrossAxisAlignment.start,
      children: <Widget>[
        Text("YYDevelopDialog", style: titleTextStyle),
        Text("1、debug"),
        Row(
          children: <Widget>[
            makeTextButton("fix dismiss\nbug in v1.0.1", () {
              Navigator.push(
                context,
                MaterialPageRoute(
                    builder: (context) => Scaffold(
                          appBar: AppBar(
                            title: Text("fix dismiss bug"),
                          ),
                          body: Column(
                            children: <Widget>[
                              makeTextButton("show", () {
                                yyDialog = YYAlertDialogBody();
                              }),
                              makeTextButton("dismiss", () {
                                yyDialog?.dismiss();
                              }),
                            ],
                          ),
                        )),
              );
            }),
          ],
        ),
      ],
    ),
  );
}

Widget makeTextButton(title, Function() function) {
  return SizedBox(
    width: 70.0,
    height: 35.0,
    child: RaisedButton(
      padding: EdgeInsets.all(0.0),
      onPressed: () {
        function();
      },
      child: Text(
        title,
        textAlign: TextAlign.center,
        style: TextStyle(fontSize: 12.0),
      ),
    ),
  );
}

Use this package as a library

1. Depend on it

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


dependencies:
  flutter_custom_dialog_dev: ^0.0.1+1

2. Install it

You can install packages from the command line:

with pub:


$ pub get

with Flutter:


$ flutter pub get

Alternatively, your editor might support pub get or 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:flutter_custom_dialog_dev/components/example/alert_dialog.dart';
import 'package:flutter_custom_dialog_dev/components/example/bottom_sheet_dialog.dart';
import 'package:flutter_custom_dialog_dev/components/example/listview_dialog.dart';
import 'package:flutter_custom_dialog_dev/components/example/progress_dialog.dart';
import 'package:flutter_custom_dialog_dev/flutter_custom_dialog.dart';
import 'package:flutter_custom_dialog_dev/flutter_custom_dialog_widget.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
0
Health:
Code health derived from static analysis. [more]
0
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
40
Overall:
Weighted score of the above. [more]
8
Learn more about scoring.

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

  • Dart: 2.7.1
  • pana: 0.13.6
  • Flutter: 1.12.13+hotfix.8

Health issues and suggestions

Fix lib/components/example/alert_dialog.dart. (-100 points)

Analysis of lib/components/example/alert_dialog.dart failed with 45 errors, 15 hints, including:

line 2 col 8: Target of URI doesn't exist: 'package:flutter_custom_dialog/flutter_custom_dialog.dart'.

line 4 col 1: Undefined class 'YYDialog'.

line 5 col 10: The function 'YYDialog' isn't defined.

line 15 col 16: Undefined name 'Gravity'.

line 28 col 1: Undefined class 'YYDialog'.

Fix lib/components/example/listview_dialog.dart. (-99.58 points)

Analysis of lib/components/example/listview_dialog.dart failed with 19 errors, 2 hints, including:

line 2 col 8: Target of URI doesn't exist: 'package:flutter_custom_dialog/flutter_custom_dialog.dart'.

line 5 col 3: The function 'ListTileItem' isn't defined.

line 19 col 3: The function 'ListTileItem' isn't defined.

line 33 col 3: The function 'ListTileItem' isn't defined.

line 47 col 3: The function 'ListTileItem' isn't defined.

Fix lib/components/example/progress_dialog.dart. (-76.51 points)

Analysis of lib/components/example/progress_dialog.dart failed with 5 errors, 2 hints, including:

line 2 col 8: Target of URI doesn't exist: 'package:flutter_custom_dialog/flutter_custom_dialog.dart'.

line 4 col 1: Undefined class 'YYDialog'.

line 5 col 10: The function 'YYDialog' isn't defined.

line 15 col 1: Undefined class 'YYDialog'.

line 16 col 10: The function 'YYDialog' isn't defined.

Fix additional 3 files with analysis or formatting issues. (-152.29 points)

Additional issues in the following files:

  • lib/components/example/bottom_sheet_dialog.dart (4 errors, 1 hint)
  • lib/flutter_custom_dialog_widget.dart (3 errors, 1 hint)
  • lib/flutter_custom_dialog.dart (1 error, 2 hints)

Maintenance issues and suggestions

No valid SDK. (-20 points)

The analysis could not detect a valid SDK that can use this package.

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

exitCode: 255 stdout: parsing /tmp/pub-dartlang-dartdocNECUCN/pkg/lib/flutter_custom_dialog.dart... parsing /tmp/pub-dartlang-dartdocNECUCN/pkg/lib/flutter_custom_dialog_widget.dart... parsing /tmp/pub-dartlang-dartdocNECUCN/pkg/lib/components/example/listview_dialog.dart... parsing /tmp/pub-dartlang-dartdocNECUCN/pkg/lib/components/example/progress_dialog.dart... parsing /tmp/pub-dartlang-dartdocNECUCN/pkg/lib/components/example/bottom_sheet_dialog.dart... parsing /tmp/pub-dartlang-dartdocNECUCN/pkg/lib/components/example/alert_dialog.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/_interceptors/interceptors.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/convert/convert.dart... parsing /flutter/bin/cache/pkg/sky_engine/lib/async/async.dart... parsing /flutter/bin/cache/pkg/sky_engine/lib/typed_data/typed_data.dart... parsing /flutter/bin/cache/pkg/sky_engine/lib/_empty.dart... parsing /flutter/bin/cache/pkg/sky_engine/lib/js_util/js_util_dart2js.dart... parsing /flutter/bin/cache/pkg/sky_engine/lib/html/html_dart2js.dart... parsing /flutter/bin/cache/pkg/sky_engine/lib/math/math.dart... parsing /flutter/bin/cache/pkg/sky_engine/lib/core/core.dart... [...] parsing /tmp/pub-cache-dirBPEYRH/hosted/pub.dartlang.org/typed_data-1.1.6/lib/typed_data.dart... parsing /tmp/pub-cache-dirBPEYRH/hosted/pub.dartlang.org/collection-1.14.11/lib/algorithms.dart... parsing /tmp/pub-cache-dirBPEYRH/hosted/pub.dartlang.org/collection-1.14.11/lib/equality.dart... parsing /tmp/pub-cache-dirBPEYRH/hosted/pub.dartlang.org/collection-1.14.11/lib/iterable_zip.dart... parsing /tmp/pub-cache-dirBPEYRH/hosted/pub.dartlang.org/collection-1.14.11/lib/priority_queue.dart... parsing /tmp/pub-cache-dirBPEYRH/hosted/pub.dartlang.org/collection-1.14.11/lib/wrappers.dart... parsing /tmp/pub-cache-dirBPEYRH/hosted/pub.dartlang.org/vector_math-2.0.8/lib/vector_math_operations.dart... parsing /tmp/pub-cache-dirBPEYRH/hosted/pub.dartlang.org/vector_math-2.0.8/lib/vector_math_geometry.dart... parsing /tmp/pub-cache-dirBPEYRH/hosted/pub.dartlang.org/vector_math-2.0.8/lib/vector_math.dart... parsing /tmp/pub-cache-dirBPEYRH/hosted/pub.dartlang.org/vector_math-2.0.8/lib/vector_math_lists.dart... Initialized dartdoc with 498 libraries in 93.8 seconds documenting flutter_custom_dialog_dev Generating docs for library alert_dialog from package:flutter_custom_dialog_dev/components/example/alert_dialog.dart... Generating docs for library bottom_sheet_dialog from package:flutter_custom_dialog_dev/components/example/bottom_sheet_dialog.dart... Generating docs for library flutter_custom_dialog from package:flutter_custom_dialog_dev/flutter_custom_dialog.dart... Generating docs for library flutter_custom_dialog_widget from package:flutter_custom_dialog_dev/flutter_custom_dialog_widget.dart... Generating docs for library listview_dialog from package:flutter_custom_dialog_dev/components/example/listview_dialog.dart... Generating docs for library progress_dialog from package:flutter_custom_dialog_dev/components/example/progress_dialog.dart... Validating docs... Documented 6 public libraries in 10.2 seconds stderr: Documenting flutter_custom_dialog_dev... error: unresolved export uri: "package:flutter_custom_dialog/flutter_custom_dialog.dart", from flutter_custom_dialog: (file:///tmp/pub-dartlang-dartdocNECUCN/pkg/lib/flutter_custom_dialog.dart:1:1) error: unresolved export uri: "package:flutter_custom_dialog/flutter_custom_dialog_widget.dart", from flutter_custom_dialog_widget: (file:///tmp/pub-dartlang-dartdocNECUCN/pkg/lib/flutter_custom_dialog_widget.dart:1:1) 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:13:28) referred to by collection: (file:///tmp/pub-cache-dirBPEYRH/hosted/pub.dartlang.org/collection-1.14.11/lib/collection.dart:1:1) referred to by dart.pkg.collection.wrappers: (file:///tmp/pub-cache-dirBPEYRH/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:374:27) referred to by collection: (file:///tmp/pub-cache-dirBPEYRH/hosted/pub.dartlang.org/collection-1.14.11/lib/collection.dart:1:1) referred to by dart.pkg.collection.wrappers: (file:///tmp/pub-cache-dirBPEYRH/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:374:30) referred to by collection: (file:///tmp/pub-cache-dirBPEYRH/hosted/pub.dartlang.org/collection-1.14.11/lib/collection.dart:1:1) referred to by dart.pkg.collection.wrappers: (file:///tmp/pub-cache-dirBPEYRH/hosted/pub.dartlang.org/collection-1.14.11/lib/wrappers.dart:7:9) warning: ambiguous reexport of dart-ui.hashList, canonicalization candidates: (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) 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: (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) 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: (cupertino, foundation, material, painting, rendering, scheduler, widgets) -> widgets (confidence 0.000) from dart-ui.VoidCallback: (file:///flutter/bin/cache/pkg/sky_engine/lib/ui/window.dart:8:9) 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.AccessibilityFeatures, canonicalization candidates: (rendering, semantics) -> semantics (confidence 0.000) from dart-ui.AccessibilityFeatures: (file:///flutter/bin/cache/pkg/sky_engine/lib/ui/window.dart:1208: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: ambiguous reexport of dart-ui.FontWeight, canonicalization candidates: (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) 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: (cupertino, material, painting, rendering, widgets) -> widgets (confidence 0.000) from dart-ui.Locale: (file:///flutter/bin/cache/pkg/sky_engine/lib/ui/window.dart:248:7) 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: (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) 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: (cupertino, material, painting, rendering, widgets) -> widgets (confidence 0.000) from dart-ui.Radius: (file:///flutter/bin/cache/pkg/sky_engine/lib/ui/geometry.dart:895:7) 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: (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) 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: (cupertino, material, painting, rendering, widgets) -> widgets (confidence 0.000) from dart-ui.RRect: (file:///flutter/bin/cache/pkg/sky_engine/lib/ui/geometry.dart:1018:7) 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: (cupertino, material, painting, rendering, widgets) -> widgets (confidence 0.000) from dart-ui.RSTransform: (file:///flutter/bin/cache/pkg/sky_engine/lib/ui/geometry.dart:1645:7) 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: (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) 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: (cupertino, material, painting, rendering, widgets) -> widgets (confidence 0.000) from dart-ui.TextBox: (file:///flutter/bin/cache/pkg/sky_engine/lib/ui/text.dart:1220:7) 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: (cupertino, material, painting, rendering, widgets) -> widgets (confidence 0.000) from dart-ui.TextDecoration: (file:///flutter/bin/cache/pkg/sky_engine/lib/ui/text.dart:358:7) 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: (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:1364:7) 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.TextRange, canonicalization candidates: (cupertino, material, painting, rendering, services, widgets) -> widgets (confidence 0.000) from dart-ui.TextRange: (file:///flutter/bin/cache/pkg/sky_engine/lib/ui/text.dart:1410:7) 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: (cupertino, material, scheduler, widgets) -> widgets (confidence 0.000) from dart-ui.AppLifecycleState: (file:///flutter/bin/cache/pkg/sky_engine/lib/ui/window.dart:154:6) 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: (cupertino, material, services) -> services (confidence 0.000) from dart-ui.Brightness: (file:///flutter/bin/cache/pkg/sky_engine/lib/ui/window.dart:1272:6) 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: (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) 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.PlaceholderAlignment, canonicalization candidates: (cupertino, material, painting, rendering, widgets) -> widgets (confidence 0.000) from dart-ui.PlaceholderAlignment: (file:///flutter/bin/cache/pkg/sky_engine/lib/ui/text.dart:1619:6) 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: (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:1322:6) 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: (cupertino, material, painting, rendering, widgets) -> widgets (confidence 0.000) from dart-ui.TextAlign: (file:///flutter/bin/cache/pkg/sky_engine/lib/ui/text.dart:317:6) 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: (cupertino, material, painting, rendering, widgets) -> widgets (confidence 0.000) from dart-ui.TextBaseline: (file:///flutter/bin/cache/pkg/sky_engine/lib/ui/text.dart:349:6) 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: (cupertino, material, painting, rendering, widgets) -> widgets (confidence 0.000) from dart-ui.TextDecorationStyle: (file:///flutter/bin/cache/pkg/sky_engine/lib/ui/text.dart:417:6) 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: (cupertino, material, painting, rendering, widgets) -> widgets (confidence 0.000) from dart-ui.TextDirection: (file:///flutter/bin/cache/pkg/sky_engine/lib/ui/text.dart:1208:6) 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: unresolved doc reference [Lanuage ~~], from package-flutter_custom_dialog_dev: file:///tmp/pub-dartlang-dartdocNECUCN/pkg warning: no canonical library found for flutter_custom_dialog.CustomDialog.hashCode, not linking, from flutter_custom_dialog.CustomDialog.hashCode: (file:///flutter/bin/cache/pkg/sky_engine/lib/core/object.dart:94:20) warning: no canonical library found for flutter_custom_dialog.CustomDialog.runtimeType, not linking, from flutter_custom_dialog.CustomDialog.runtimeType: (file:///flutter/bin/cache/pkg/sky_engine/lib/core/object.dart:116:21) warning: no canonical library found for flutter_custom_dialog.CustomDialog.noSuchMethod, not linking, from flutter_custom_dialog.CustomDialog.noSuchMethod: (file:///flutter/bin/cache/pkg/sky_engine/lib/core/object.dart:111:20) warning: no canonical library found for flutter_custom_dialog.CustomDialog.toString, not linking, from flutter_custom_dialog.CustomDialog.toString: (file:///flutter/bin/cache/pkg/sky_engine/lib/core/object.dart:99:19) warning: no canonical library found for flutter_custom_dialog.CustomDialog.==, not linking, from flutter_custom_dialog.CustomDialog.==: (file:///flutter/bin/cache/pkg/sky_engine/lib/core/object.dart:62:26) warning: no canonical library found for flutter_custom_dialog.CustomDialogChildren.key, not linking, from flutter_custom_dialog.CustomDialogChildren.key: (file:///flutter/packages/flutter/lib/src/widgets/framework.dart:414:13) warning: no canonical library found for flutter_custom_dialog.CustomDialogChildren.createElement, not linking, from flutter_custom_dialog.CustomDialogChildren.createElement: (file:///flutter/packages/flutter/lib/src/widgets/framework.dart:809:19) warning: no canonical library found for flutter_custom_dialog.CustomDialogChildren.debugDescribeChildren, not linking, from flutter_custom_dialog.CustomDialogChildren.debugDescribeChildren: (file:///flutter/packages/flutter/lib/src/foundation/diagnostics.dart:3439:25) warning: no canonical library found for flutter_custom_dialog.CustomDialogChildren.debugFillProperties, not linking, from flutter_custom_dialog.CustomDialogChildren.debugFillProperties: (file:///flutter/packages/flutter/lib/src/widgets/framework.dart:433:8) warning: no canonical library found for flutter_custom_dialog.CustomDialogChildren.toDiagnosticsNode, not linking, from flutter_custom_dialog.CustomDialogChildren.toDiagnosticsNode: (file:///flutter/packages/flutter/lib/src/foundation/diagnostics.dart:3413:19) warning: no canonical library found for flutter_custom_dialog.CustomDialogChildren.toString, not linking, from flutter_custom_dialog.CustomDialogChildren.toString: (file:///flutter/packages/flutter/lib/src/foundation/diagnostics.dart:3092:10) warning: no canonical library found for flutter_custom_dialog.CustomDialogChildren.toStringDeep, not linking, from flutter_custom_dialog.CustomDialogChildren.toStringDeep: (file:///flutter/packages/flutter/lib/src/foundation/diagnostics.dart:3401:10) warning: no canonical library found for flutter_custom_dialog.CustomDialogChildren.toStringShallow, not linking, from flutter_custom_dialog.CustomDialogChildren.toStringShallow: (file:///flutter/packages/flutter/lib/src/foundation/diagnostics.dart:3365:10) warning: no canonical library found for flutter_custom_dialog.CustomDialogChildren.toStringShort, not linking, from flutter_custom_dialog.CustomDialogChildren.toStringShort: (file:///flutter/packages/flutter/lib/src/widgets/framework.dart:428:10) warning: no canonical library found for flutter_custom_dialog.CustomDialogChildState.context, not linking, from flutter_custom_dialog.CustomDialogChildState.context: (file:///flutter/packages/flutter/lib/src/widgets/framework.dart:977:20) warning: no canonical library found for flutter_custom_dialog.CustomDialogChildState.mounted, not linking, from flutter_custom_dialog.CustomDialogChildState.mounted: (file:///flutter/packages/flutter/lib/src/widgets/framework.dart:989:12) warning: no canonical library found for flutter_custom_dialog.CustomDialogChildState.widget, not linking, from flutter_custom_dialog.CustomDialogChildState.widget: (file:///flutter/packages/flutter/lib/src/widgets/framework.dart:954:9) warning: unresolved doc reference [InheritedWidget] from flutter_custom_dialog.CustomDialogChildState.build: (file:///tmp/pub-dartlang-dartdocNECUCN/pkg/lib/flutter_custom_dialog.dart:365:10) in documentation inherited from framework.State.build: (file:///flutter/packages/flutter/lib/src/widgets/framework.dart:1324:10) warning: unresolved doc reference [AnimatedWidget] from flutter_custom_dialog.CustomDialogChildState.build: (file:///tmp/pub-dartlang-dartdocNECUCN/pkg/lib/flutter_custom_dialog.dart:365:10) in documentation inherited from framework.State.build: (file:///flutter/packages/flutter/lib/src/widgets/framework.dart:1324:10) warning: unresolved doc reference [ChangeNotifier] from flutter_custom_dialog.CustomDialogChildState.dispose: (file:///tmp/pub-dartlang-dartdocNECUCN/pkg/lib/flutter_custom_dialog.dart:373:8) in documentation inherited from framework.State.dispose: (file:///flutter/packages/flutter/lib/src/widgets/framework.dart:1216:8) warning: unresolved doc reference [Stream] from flutter_custom_dialog.CustomDialogChildState.dispose: (file:///tmp/pub-dartlang-dartdocNECUCN/pkg/lib/flutter_custom_dialog.dart:373:8) in documentation inherited from framework.State.dispose: (file:///flutter/packages/flutter/lib/src/widgets/framework.dart:1216:8) warning: no canonical library found for flutter_custom_dialog.CustomDialogChildState.deactivate, not linking, from flutter_custom_dialog.CustomDialogChildState.deactivate: (file:///flutter/packages/flutter/lib/src/widgets/framework.dart:1195:8) warning: no canonical library found for flutter_custom_dialog.CustomDialogChildState.debugFillProperties, not linking, from flutter_custom_dialog.CustomDialogChildState.debugFillProperties: (file:///flutter/packages/flutter/lib/src/widgets/framework.dart:1345:8) warning: no canonical library found for flutter_custom_dialog.CustomDialogChildState.didChangeDependencies, not linking, from flutter_custom_dialog.CustomDialogChildState.didChangeDependencies: (file:///flutter/packages/flutter/lib/src/widgets/framework.dart:1342:8) warning: no canonical library found for flutter_custom_dialog.CustomDialogChildState.didUpdateWidget, not linking, from flutter_custom_dialog.CustomDialogChildState.didUpdateWidget: (file:///flutter/packages/flutter/lib/src/widgets/framework.dart:1048:8) warning: no canonical library found for flutter_custom_dialog.CustomDialogChildState.initState, not linking, from flutter_custom_dialog.CustomDialogChildState.initState: (file:///flutter/packages/flutter/lib/src/widgets/framework.dart:1024:8) warning: no canonical library found for flutter_custom_dialog.CustomDialogChildState.reassemble, not linking, from flutter_custom_dialog.CustomDialogChildState.reassemble: (file:///flutter/packages/flutter/lib/src/widgets/framework.dart:1063:8) warning: no canonical library found for flutter_custom_dialog.CustomDialogChildState.setState, not linking, from flutter_custom_dialog.CustomDialogChildState.setState: (file:///flutter/packages/flutter/lib/src/widgets/framework.dart:1108:8) warning: no canonical library found for flutter_custom_dialog.CustomDialogChildState.toDiagnosticsNode, not linking, from flutter_custom_dialog.CustomDialogChildState.toDiagnosticsNode: (file:///flutter/packages/flutter/lib/src/foundation/diagnostics.dart:3110:19) warning: no canonical library found for flutter_custom_dialog.CustomDialogChildState.toStringShort, not linking, from flutter_custom_dialog.CustomDialogChildState.toStringShort: (file:///flutter/packages/flutter/lib/src/foundation/diagnostics.dart:3089:10) warning: unresolved doc reference [InheritedWidget] from flutter_custom_dialog_widget.YYRadioListTileState.build: (file:///tmp/pub-dartlang-dartdocNECUCN/pkg/lib/flutter_custom_dialog_widget.dart:29:10) in documentation inherited from framework.State.build: (file:///flutter/packages/flutter/lib/src/widgets/framework.dart:1324:10) warning: unresolved doc reference [AnimatedWidget] from flutter_custom_dialog_widget.YYRadioListTileState.build: (file:///tmp/pub-dartlang-dartdocNECUCN/pkg/lib/flutter_custom_dialog_widget.dart:29:10) in documentation inherited from framework.State.build: (file:///flutter/packages/flutter/lib/src/widgets/framework.dart:1324:10) warning: no canonical library found for flutter_custom_dialog_widget.YYRadioListTileState.dispose, not linking, from flutter_custom_dialog_widget.YYRadioListTileState.dispose: (file:///flutter/packages/flutter/lib/src/widgets/framework.dart:1216:8) warning: dartdoc generated a broken link to: README.md, linked to from package-flutter_custom_dialog_dev: file:///tmp/pub-dartlang-dartdocNECUCN/pkg warning: dartdoc generated a broken link to: README_CN.md, linked to from package-flutter_custom_dialog_dev: file:///tmp/pub-dartlang-dartdocNECUCN/pkg found 64 warnings and 2 errors Unhandled exception: dartdoc encountered 2 errors while processing. #0 Dartdoc.generateDocs (package:dartdoc/dartdoc.dart:202:7)

The package description is too short. (-20 points)

Add more detail to the description field of pubspec.yaml. Use 60 to 180 characters to describe the package, what it does, and its target use case.

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.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.1.0 <3.0.0
flutter 0.0.0
Transitive dependencies
collection 1.14.11 1.14.12
meta 1.1.8
sky_engine 0.0.99
typed_data 1.1.6
vector_math 2.0.8
Dev dependencies
flutter_test