Created
August 30, 2021 13:16
-
-
Save gaetschwartz/2e06ae93da6a10db740032711ca1d3ac to your computer and use it in GitHub Desktop.
Mike Rydstrom rounded borders challenge
This file contains 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 'dart:convert'; | |
import 'package:flutter/material.dart'; | |
void main() => runApp(MyApp()); | |
class MyApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return const MaterialApp( | |
title: 'Flutter Demo', | |
debugShowCheckedModeBanner: false, | |
home: MyHomePage(), | |
); | |
} | |
} | |
class MyHomePage extends StatefulWidget { | |
const MyHomePage({Key? key}) : super(key: key); | |
@override | |
_MyHomePageState createState() => _MyHomePageState(); | |
} | |
class _MyHomePageState extends State<MyHomePage> { | |
final img64 = | |
"iVBORw0KGgoAAAANSUhEUgAAAR8AAAEQCAMAAAC+34CqAAABlVBMVEX///+cnJyfn5+2trbPz8/q6ur+/v4bGxs/Pz+Dg4PMzMz9/f0vLy92dnbT09MdHR1vb2/m5uYgICCCgoLw8PArKyu8vLwcHByampp3d3f8/PxfX1/7+/tod35caW5LVVk4PkElJyjI6/rF6PeXsLticXcqLS6UlJSAk5y3t7fA4fBwgIcdHR4qKiokJiZ9fX2sytYvMzUeHh7l5eUjJSZqamocHR1zhIzE5vUtMDIpKSmGnKXLy8vH6vkwNDZsfII1NTWoxdErLi/p6elFTlHNzc1aZmyysrJqeoCXl5d4ipKFhYVhb3WKiopPWV6jo6M9REe+vr4nKSrZ2dmjvsr19fVmdnwuMjRubm6Inqi7u7stMTMhISH5+fl3iJBgYGCduMMeHh/ExMSxz9xaWlqvzdoyNzna2tqas79tbW13iZEiIiLn5+eJn6mqqqqivcltfoQzODqEhIRzg4toeH9XY2hETVBiYmJKSkr4+Pj29vaBgYGlpaVzc3MmJiZpaWkyMjL6+vqNjY2RkZGnp6fAwMDb29vNAMG1AAADQUlEQVR4nO3ZZXNUMRiG4YM1WGmRcoB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AAAAAAAAAAAA/9xvmBvIRGeW/qIAAAAASUVORK5CYII="; | |
late final imgData = base64.decode(img64); | |
@override | |
Widget build(BuildContext context) { | |
return Scaffold( | |
backgroundColor: Colors.white, | |
appBar: AppBar( | |
title: const Text("Mike Rydstrom rounded borders challenge"), | |
), | |
body: Center( | |
child: Image.memory(imgData), | |
), | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment