Last active
April 19, 2020 15:14
-
-
Save stegrams/ee448211887ec275a6996a90e3ef3428 to your computer and use it in GitHub Desktop.
Sample of characters inside boxes
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 'package:flutter/material.dart'; | |
void main() { | |
runApp(MyApp()); | |
} | |
class MyApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( | |
home: Scaffold( | |
body: Center( | |
child: Row( | |
mainAxisAlignment: MainAxisAlignment.center, | |
children: "CSE164078" | |
.split('') | |
.map( | |
(c) => Container( | |
width: 50, | |
decoration: BoxDecoration( | |
border: Border.all(color: Colors.black), | |
), | |
child: Text( | |
c, | |
textAlign: TextAlign.center, | |
style: TextStyle(fontSize: 40), | |
), | |
), | |
) | |
.toList(), | |
), | |
), | |
), | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment