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'; | |
| import 'package:shared_preferences/shared_preferences.dart'; | |
| //https://stackoverflow.com/a/53107519/10409567 | |
| void main() async { | |
| // load the shared preferences from disk before the app is started | |
| WidgetsFlutterBinding.ensureInitialized(); | |
| final prefs = await SharedPreferences.getInstance(); | |
| // create new theme controller, which will get the currently selected from shared preferences |
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"; | |
| import 'package:flutter/services.dart'; | |
| import 'dart:math'; | |
| const CURVE_HEIGHT = 160.0; | |
| const AVATAR_RADIUS = CURVE_HEIGHT * 0.28; | |
| const AVATAR_DIAMETER = AVATAR_RADIUS * 2; | |
| void main() => runApp(new MyApp()); |