Skip to content

Instantly share code, notes, and snippets.

@juancavallotti
Created February 2, 2023 21:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save juancavallotti/7a0998a8dec2eb603440d66c09370204 to your computer and use it in GitHub Desktop.
Save juancavallotti/7a0998a8dec2eb603440d66c09370204 to your computer and use it in GitHub Desktop.
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