renderDesktopView method

dynamic renderDesktopView(
  1. BuildContext context,
  2. CustomDividor state
)

Implementation

renderDesktopView(BuildContext context, CustomDividor state) {
  return Column(
    children: [
      Row(
        children: (state.title != '')
            ? [
                Expanded(
                  child: Divider(
                    color: state.color ?? Colors.white.withValues(alpha: 0.6),
                    thickness: state.lineWidth ?? 1,
                    indent: 5,
                    endIndent: 5,
                  ),
                ),
                Padding(
                  padding: const EdgeInsets.symmetric(horizontal: 15),
                  child: Text(
                    state.title,
                    style: TextStyle(
                      fontSize: state.fontSize ?? 16,
                      color: state.color ?? Colors.white.withValues(alpha: 0.6),
                      //fontWeight: FontWeight.bold,
                    ),
                  ),
                ),
                Expanded(
                  child: Divider(
                    color: state.color ?? Colors.white.withValues(alpha: 0.6),
                    thickness: state.lineWidth ?? 1,
                    indent: 5,
                    endIndent: 5,
                  ),
                )
              ]
            : [
                Expanded(
                  child: Divider(
                    color: state.color ?? Colors.white.withValues(alpha: 0.6),
                    thickness: 2,
                    indent: 5,
                    endIndent: 5,
                  ),
                ),
              ],
      ),
      if (state.bottomSpacing != null) SizedBox(height: state.bottomSpacing)
    ],
  );
}