Open gingergitt opened 6 months ago
Plugin name appinio_animated_toggle_tab
Describe the bug I followed the usage on the pub.dev site, but I keep getting the error "Incorrect use of ParentDataWidget".
Expected behavior A clear and concise description of what you expected to happen.
// example codes ` @override Widget build(BuildContext context) { return Column( // problem also happens at return CupertinoApp() ... children: [ AppinioAnimatedToggleTab( callback: (int i) {}, tabTexts: const [ 'make', 'your', 'tabs :)', ], height: 40, width: 300, boxDecoration: BoxDecoration( color: Color(0xFFc3d2db), ), animatedBoxDecoration: BoxDecoration( boxShadow: [ BoxShadow( color: const Color(0xFFc3d2db).withOpacity(0.1), spreadRadius: 1, blurRadius: 5, offset: const Offset(2, 2), ), ], color: Colors.blueGrey, borderRadius: const BorderRadius.all( Radius.circular(5), ), border: Border.all( color: Colors.grey, width: 1, ), ), activeStyle: const TextStyle( color: Colors.blue, ), inactiveStyle: const TextStyle( color: Colors.black, ),
), ], );
}`
Plugin name appinio_animated_toggle_tab
Describe the bug I followed the usage on the pub.dev site, but I keep getting the error "Incorrect use of ParentDataWidget".
Expected behavior A clear and concise description of what you expected to happen.
// example codes ` @override Widget build(BuildContext context) { return Column( // problem also happens at return CupertinoApp() ... children: [ AppinioAnimatedToggleTab( callback: (int i) {}, tabTexts: const [ 'make', 'your', 'tabs :)', ], height: 40, width: 300, boxDecoration: BoxDecoration( color: Color(0xFFc3d2db), ), animatedBoxDecoration: BoxDecoration( boxShadow: [ BoxShadow( color: const Color(0xFFc3d2db).withOpacity(0.1), spreadRadius: 1, blurRadius: 5, offset: const Offset(2, 2), ), ], color: Colors.blueGrey, borderRadius: const BorderRadius.all( Radius.circular(5), ), border: Border.all( color: Colors.grey, width: 1, ), ), activeStyle: const TextStyle( color: Colors.blue, ), inactiveStyle: const TextStyle( color: Colors.black, ),
}`