hankg,

I had trouble getting a VerticalDivider to show up in a toolbar. It's because the Row didn't have any explicit height. There are two solutions: wrap it in a SizedBox, or wrap the row in an IntrinsicHeight. The latter can have performance penalties deep in the widget tree.

hankg,

The third example should read:

IntrinsicHeight(
  child: Row(children: [
    IconButton(onPressed: () {}, icon: Icon(Icons.save)),
    VerticalDivider(),
    IconButton(onPressed: () {}, icon: Icon(Icons.cut)),
  ]),
);
  • All
  • Subscribed
  • Moderated
  • Favorites
  • Flutter
  • DreamBathrooms
  • mdbf
  • InstantRegret
  • Durango
  • Youngstown
  • rosin
  • slotface
  • thenastyranch
  • osvaldo12
  • ngwrru68w68
  • kavyap
  • cisconetworking
  • khanakhh
  • magazineikmin
  • provamag3
  • cubers
  • vwfavf
  • modclub
  • everett
  • ethstaker
  • Leos
  • tacticalgear
  • normalnudes
  • tester
  • GTA5RPClips
  • anitta
  • megavids
  • JUstTest
  • All magazines