-
-
Save juancavallotti/7a0998a8dec2eb603440d66c09370204 to your computer and use it in GitHub Desktop.
This file contains 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
class ExampleB extends StatelessWidget { | |
const ExampleB({super.key}); | |
@override | |
Widget build(BuildContext context) { | |
return Scaffold( | |
body: SizedBox.expand( | |
child: Column( | |
mainAxisAlignment: MainAxisAlignment.center, | |
crossAxisAlignment: CrossAxisAlignment.center, | |
children: [ | |
Padding( | |
padding: const EdgeInsets.all(6), | |
child: Container( | |
decoration: BoxDecoration( | |
border: Border.all(width: 1.0), | |
borderRadius: BorderRadius.circular(8.0)), | |
child: const Padding( | |
padding: EdgeInsets.all(20), | |
child: Text("Hello flutter World"), | |
), | |
), | |
), | |
Padding( | |
padding: const EdgeInsets.all(6), | |
child: Container( | |
decoration: BoxDecoration( | |
border: Border.all(width: 1.0), | |
borderRadius: BorderRadius.circular(8.0)), | |
child: const Padding( | |
padding: EdgeInsets.all(20), | |
child: Text("Hello flutter World"), | |
), | |
), | |
), | |
], | |
), | |
), | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment