Abhilash-Chandran / number_inc_dec

A flutter widget to accept numeric inputs with button to increment and decrement.
https://pub.dev/packages/number_inc_dec
MIT License
10 stars 7 forks source link

demo example won't compile - missing code fragment #12

Closed abulka closed 4 years ago

abulka commented 4 years ago

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(),
    );
  }
}
Abhilash-Chandran commented 4 years ago

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