Skip to content

Instantly share code, notes, and snippets.

@rapPayne
Created December 23, 2023 00:54
Show Gist options
  • Save rapPayne/4da2341bc8da7aa01f56ce8d1ebc69e3 to your computer and use it in GitHub Desktop.
Save rapPayne/4da2341bc8da7aa01f56ce8d1ebc69e3 to your computer and use it in GitHub Desktop.
obsidian-echo-0681
import 'package:flutter/material.dart';
const Color darkBlue = Color.fromARGB(255, 18, 32, 47);
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
body: Scaler(),
),
);
}
}
class Scaler extends StatelessWidget {
@override
Widget build(context) {
return InteractiveViewer(
clipBehavior: Clip.none,
child: ThingToScale(),
);
}
}
class ThingToScale extends StatelessWidget {
@override
Widget build(context) {
return Container(
width: 1000,
height: 500,
clipBehavior: Clip.none,
color: Colors.red,
child: const Placeholder(),
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment