LCOV - code coverage report
Current view: | top level - src/widgets/tiles - story_tile.dart (source / functions) |  |  | Hit | Total | Coverage
Test: | lcov.info |  | Lines: | 0 | 10 | 0.0 %
Date: | 2021-10-11 06:57:03 |  | Functions: | 0 | 0 | -

              Line data    Source code
           1             : import 'package:flutter/cupertino.dart';
           2             : import 'package:flutter/material.dart';
           3             : import 'package:widgetbook/src/models/organizers/organizers.dart';
           4             : import 'package:widgetbook/src/providers/canvas_provider.dart';
           5             : import 'package:widgetbook/src/utils/utils.dart';
           6             : import 'package:widgetbook/src/widgets/tiles/spaced_tile.dart';
           7             :
           8             : class StoryTile extends StatefulWidget {
           9           0 :   const StoryTile({
          10             :     Key? key,
          11             :     required this.story,
          12             :     required this.level,
          13           0 :   }) : super(key: key);
          14             :
          15             :   final Story story;
          16             :   final int level;
          17             :
          18           0 :   @override
          19           0 :   _StoryTileState createState() => _StoryTileState();
          20             : }
          21             :
          22             : class _StoryTileState extends State<StoryTile> {
          23           0 :   @override
          24             :   Widget build(BuildContext context) {
          25           0 :     return SpacedTile(
          26           0 :       level: widget.level,
          27           0 :       organizer: widget.story,
          28             :       iconData: Icons.auto_stories,
          29             :       iconColor: Styles.storyColor,
          30           0 :       onClicked: () {
          31           0 :         CanvasProvider.of(context)!.selectStory(widget.story);
          32             :       },
          33             :     );
          34             :   }
          35             : }

Generated by: LCOV version 1.15