build method

  1. @override
Widget build(
  1. BuildContext context,
  2. FlSwiperPluginConfig config
)
override

Implementation

@override
Widget build(BuildContext context, FlSwiperPluginConfig config) {
  final ThemeData themeData = Theme.of(context);
  final Color activeColor = this.activeColor ?? themeData.primaryColor;
  final Color color = this.color ?? themeData.scaffoldBackgroundColor;
  return Flex(
      key: key,
      direction: config.scrollDirection,
      mainAxisSize: MainAxisSize.min,
      children: [
        BText('${config.activeIndex + 1}',
            style: BTextStyle(color: activeColor, fontSize: activeFontSize)),
        BText('/', style: BTextStyle(color: color, fontSize: fontSize)),
        BText('${config.itemCount}',
            style: BTextStyle(color: color, fontSize: fontSize))
      ]);
}