title: Counter widget in flutter
body: <p>I'm trying to create some counter widget with increment and dicrement buttons and count number between them.
  Is it possible to create counter with design:</p>
  <p><a href="https://i.stack.imgur.com/N6OUI.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/N6OUI.png" alt="enter image description here" /></a></p>
  <p>Here is what I have now:</p>
  <pre><code> @override
    Widget build(BuildContext context) {
      return Container(
        padding: EdgeInsets.zero,
        child: Row(
          mainAxisAlignment: MainAxisAlignment.spaceBetween,
          children: [
            _createIncrementDicrementButton(Icons.remove, () =&gt; _dicrement()),
            Text(_currentCount.toString()),
            _createIncrementDicrementButton(Icons.add, () =&gt; _increment()),
          ],
        ),
      );
    }
  
    void _increment() {
      setState(() {
        _currentCount++;
        _counterCallback(_currentCount);
      });
    }
  
    void _dicrement() {
      setState(() {
        if (_currentCount &gt; 1) {
          _currentCount--;
          _counterCallback(_currentCount);
        }
      });
    }
  
    Widget _createIncrementDicrementButton(IconData icon, Function onPressed) {
      return RawMaterialButton(
        materialTapTargetSize: MaterialTapTargetSize.padded,
        constraints: BoxConstraints(minWidth: 24.0, minHeight: 24.0),
        onPressed: onPressed,
        elevation: 2.0,
        fillColor: LightGreyColor,
        child: Icon(
          icon,
          color: BlackColor,
          size: 12.0,
        ),
        shape: CircleBorder(),
      );
    }
  </code></pre>
  <p>The problem is that I can't put borderRadius to container, it gives me an error.
  Thanks!</p>