Created
October 2, 2020 17:50
-
-
Save buzzySmile/e61dad8e54c8c22ba15c15d8704f9071 to your computer and use it in GitHub Desktop.
Flutter vertical outlined label
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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