Skip to content

Instantly share code, notes, and snippets.

@rayliverified
Created July 6, 2024 20:09
Show Gist options
  • Save rayliverified/141ed820b995be6f2850a5fed5e58b08 to your computer and use it in GitHub Desktop.
Save rayliverified/141ed820b995be6f2850a5fed5e58b08 to your computer and use it in GitHub Desktop.
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return const MaterialApp(
title: 'MyApp Demo',
debugShowCheckedModeBanner: false,
home: Scaffold(
body: Center(
child: Spacer8(),
),
),
);
}
}
class Spacer8 extends StatelessWidget {
const Spacer8({super.key});
@override
Widget build(BuildContext context) {
return const SizedBox(width: 80);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment