title: Error: Method not found: 'ButtonTheme.bar'
body: <p>I have flutter application under development. When running the app , an error occurs Method not found: 'ButtonTheme.bar'.
  I tried cleaning the project. but still same error persists</p>
  <pre><code>/C:/Users/RdpUser/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/date_range_picker-1.0.6/lib/date_range_picker.dart:1152:44: Error: Method not found: 'ButtonTheme.bar'.
      final Widget actions = new ButtonTheme.bar(
                                             ^^^
  Failed to compile application.
  </code></pre>