Created with <3 with dartpad.dev.
Created
December 23, 2023 00:54
-
-
Save rapPayne/4da2341bc8da7aa01f56ce8d1ebc69e3 to your computer and use it in GitHub Desktop.
obsidian-echo-0681
This file contains hidden or 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
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