$ keytool -genkey -v -keystore debug.keystore -storepass android -alias androiddebugkey -keypass android -keyalg RSA -keysize 2048 -validity 10000 -dname "C=US, O=Android, CN=Android Debug"
If you have not already seen https://gist.github.com/jogboms/7bc0318e9b33a4b4817306c5333a6cf3 then do have a look before this as this is only an extension to support the Flutter framework.
You can see this in action via this DartPad
This is an attempt to recreate to a degree the essence of Riverpod. There is also a Flutter version https://gist.github.com/jogboms/f7f44f11e2d9aa30d355f94f5257281d.
Warning
As you would later notice, there are two major missing pieces: A robust error handling mechanism & Tests. The goal is educational and not a replacement of the said library.
See the hosted version on DartPad.
A simple benchmark of jogboms/registry.dart vs MelbourneDeveloper/ioc_container vs fluttercommunity/get_it for educational purposes
get_it -> 7.6.0
ioc_container -> 1.0.12
registry -> https://github.com/jogboms/registry.dart/commit/c93055554a589cc8e8b03b7ff35502438cfc235f
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 'package:flutter/material.dart'; | |
import 'package:flutter/rendering.dart'; | |
void main() => runApp( | |
const MaterialApp( | |
debugShowCheckedModeBanner: false, | |
home: SliverPhysicalShapeDemo(), | |
), | |
); |
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 'package:flutter/material.dart'; | |
import 'package:flutter/rendering.dart'; | |
void main() => runApp( | |
const MaterialApp( | |
debugShowCheckedModeBanner: false, | |
home: ParallaxHeaderDemo(), | |
), | |
); |
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 'package:flutter/material.dart'; | |
import 'package:flutter/rendering.dart'; | |
void main() { | |
runApp(const App()); | |
} | |
class App extends StatelessWidget { | |
const App({super.key}); |
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
// AFTER: Added this for `lerpDouble` | |
import 'dart:ui'; | |
import 'package:flutter/material.dart'; | |
void main() => runApp(MyApp()); | |
class MyApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { |
NewerOlder