Skip to content

Instantly share code, notes, and snippets.

@buzzySmile
Created October 2, 2020 17:50
Show Gist options
  • Save buzzySmile/e61dad8e54c8c22ba15c15d8704f9071 to your computer and use it in GitHub Desktop.
Save buzzySmile/e61dad8e54c8c22ba15c15d8704f9071 to your computer and use it in GitHub Desktop.
Flutter vertical outlined label
import 'dart:math' as math;
Transform.rotate(
angle: -math.pi / 2,
child: Material(
shape: ContinuousRectangleBorder(
side: BorderSide(width: 2.0, color: Colors.red),
borderRadius: BorderRadius.circular(4.0),
),
child: Padding(
padding: const EdgeInsets.symmetric(
vertical: 2.0,
horizontal: 3.0,
),
child: Text(
'ADMIN',
style: TextStyle(color: Colors.red, fontSize: 12.0),
),
),
),
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment