Skip to content

Instantly share code, notes, and snippets.

@rayliverified
Created September 22, 2024 01:39
Show Gist options
  • Save rayliverified/db244191b7ffc99c5347e594ec6bc9cb to your computer and use it in GitHub Desktop.
Save rayliverified/db244191b7ffc99c5347e594ec6bc9cb 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: ExternalWidget1(),
),
),
);
}
}
class ExternalWidget1 extends StatelessWidget {
const ExternalWidget1({super.key});
@override
Widget build(BuildContext context) {
return const SizedBox.square(
dimension: 200,
child: Placeholder(),
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment