Flutter - Vertical Divider

后端 未结 10 2093
再見小時候
再見小時候 2021-01-01 08:37

In flutter, is there an option to draw a vertical line between components as in the image.

10条回答
  •  悲哀的现实
    2021-01-01 08:56

    As @rwynnchristian suggested, this seems to be the simplest solution IMO. Just leaving the code here:

    import 'package:flutter/material.dart';
    class VerticalDivider extends StatelessWidget {
      @override
      Widget build(BuildContext context) => RotatedBox(
        quarterTurns: 1,
        child: Divider(),
      );
    }
    

提交回复
热议问题