Abhilash-Chandran / number_inc_dec

A flutter widget to accept numeric inputs with button to increment and decrement.

Home Page:https://pub.dev/packages/number_inc_dec

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

demo example won't compile - missing code fragment

abulka opened this issue · comments

Your example at the bottom of https://pub.dev/packages/number_inc_dec/example won't compile or run.

sWidget {     <------ MISSING CODE FRAGMENT ON JUST THIS LINE
  const Example1({
    Key key,
  }) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return NumberInputWithIncrementDecrement(
      controller: TextEditingController(),
    );
  }
}

should be

class Example1 extends StatelessWidget {    <------ FIXED
  const Example1({
    Key key,
  }) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return NumberInputWithIncrementDecrement(
      controller: TextEditingController(),
    );
  }
}

Thanks a lot for reporting this. I will update the example. 👍