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 'dart:convert'; | |
| import 'dart:io'; | |
| class Database { | |
| /// A simple JSON file database | |
| Database(String path) : file = File(path); | |
| final File file; | |
| var _store = <String, dynamic>{}; |
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
| main() { | |
| BuildContext context; | |
| final router = NavigationService(context); | |
| return MaterialApp( | |
| onGenerateRoute: (settings) => router.handleGenerateRoute( | |
| settings, | |
| routes: { | |
| '/': (params, context) => HomeView(), |
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
| for f in $(find ./ -name '*.dart') | |
| do | |
| (echo "// @dart=2.9" && cat $f) > filename1 && mv filename1 $f | |
| done |
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 'dart:io'; | |
| import 'package:figma_squircle/figma_squircle.dart'; | |
| import 'package:flutter/widgets.dart'; | |
| class RoundedRectangle extends StatelessWidget { | |
| const RoundedRectangle({ | |
| super.key, | |
| this.radius = 10, | |
| this.height, |
OlderNewer