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
void main() async { | |
WidgetsFlutterBinding.ensureInitialized(); | |
final container = ProviderContainer(); | |
final routerDelegate = createDelegate(container.read); | |
final routeInformationParser = BeamerParser(); | |
F.appFlavor = Flavor.DEV; | |
await Firebase.initializeApp(); |
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
part 'zambrella/zambrella_widget.dart'; | |
part 'goober0329/goober_widget.dart'; | |
part 'rift/rift_widget.dart'; | |
part 'slovnicki/slovnicki_widget.dart'; | |
part 'hsinats/hsinats_widget.dart'; | |
// part 'example/example.dart'; <-- here | |
List<WidgetInfo> widgetInfoList = [ | |
zambrella, | |
goober, |
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
part of user_widgets; | |
class ExampleInfo extends WidgetInfo { | |
get name => 'My Widget'; //name your widget, not used in design currently | |
get description => "This is an example of a basic widget"; | |
get developer => "Joey Marino"; //use any name for yourself | |
get logoPath => "assets/profile_logos/flutter_buddy.png"; | |
get widget => ExampleWidget(); | |
} |
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:sudoku_solver/constants/enums.dart'; | |
import 'package:sudoku_solver/models/board_square.dart'; | |
import 'package:sudoku_solver/models/position_model.dart'; | |
import 'dart:async'; | |
import 'package:flutter/foundation.dart'; | |
class SudokuGrid extends ChangeNotifier { | |
List<List<BoardSquare>> userBoard; | |
int width; |
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
class EntryListModel extends ChangeNotifier { | |
List<Entry2> entryList = <Entry2>[]; | |
void addNewEntry(EntryType entryType) { | |
entryList.add(Entry2(entryType)); | |
notifyListeners(); | |
} | |
void deleteEntry(String id) { | |
entryList.removeWhere((element) => element.id == id); |
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
void main() { | |
BM newBM = BM(amount: 3, discomfort: 5, bristolScale: 3, name: 'Cool name', submittedTime: 'Thursday'); | |
print(newBM.amount); | |
print(newBM.name); | |
} |
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
abstract class Entry { | |
String name; | |
Entry(this.name); | |
void something(); | |
} |
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
void main() { | |
Sample newSample = Sample(); | |
print(newSample.counts); | |
void setToZero () { | |
// for (var i = 0; i < newSample.counts.length; i++) { | |
// newSample.counts[i] = 0; | |
// } |
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
// Function to return either a spinner or some text depending on whether a result is available | |
Widget loadingSpinner() { | |
if (loading == true) { | |
return SpinKitDoubleBounce( | |
color: Colors.red, | |
size: 50, | |
); | |
} else { | |
return Text( | |
'$userPercentage%', |
NewerOlder