hacktons / convex_bottom_bar

A Flutter package which implements a ConvexAppBar to show a convex tab in the bottom bar. Theming supported.
https://bar.hacktons.cn
Apache License 2.0
791 stars 147 forks source link

README.md中的示例代码与包文件中的代码有出入 #167

Closed Sleepfist closed 2 years ago

Sleepfist commented 2 years ago

README.md文件里这段代码

Scaffold(
  bottomNavigationBar: ConvexAppBar.builder(
    count: 5,
    backgroundColor: Colors.blue,
    style: TabStyle.fixed,
    itemBuilder: Builder(),
  )
);

// user defined class
class Builder extends DelegateBuilder {
  @override
  Widget build(BuildContext context, int index, bool active) {
    return Text('TAB $index');
  }
}

ConvexAppBar.builder里面设置了style,但在bar.dart里,ConvexAppBar.builder没有style

所以在照着README.md敲以上部分的代码,Android Studio会给报错: The named parameter 'style' isn't defined. (Documentation) Try correcting the name to an existing named parameter's name, or defining a named parameter with the name 'style'.

avenwu commented 2 years ago

文档标示问题确认存在