errorNPage property

NPage errorNPage
final

Implementation

static final errorNPage = NPage(pageBuilder: (entry) {
  return MaterialIgnorePage(
    entry: entry,
    child: ColoredBox(
      color: Colors.white,
      child: Stack(
        children: [
          ErrorWidget.withDetails(message: 'error path: ${entry.path}'),
          Positioned(
            left: 8,
            top: 50,
            child: Material(
              color: Colors.transparent,
              shape: const CircleBorder(),
              clipBehavior: Clip.hardEdge,
              child: InkWell(
                onTap: () {
                  assert(entry.isTopPage);
                  entry.remove();
                },
                child: Padding(
                  padding: const EdgeInsets.all(8.0),
                  child: Icon(
                    Icons.adaptive.arrow_back,
                    color: Colors.white,
                    size: 28,
                  ),
                ),
              ),
            ),
          ),
        ],
      ),
    ),
  );
});