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:math'; | |
import 'package:flutter/material.dart'; | |
import 'package:flutter/services.dart'; | |
void main() { | |
runApp(MyApp()); | |
} | |
class MyApp extends StatelessWidget { |
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'; | |
void main() => runApp(MyApp()); | |
class MyApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( | |
title: 'Flutter Demo', | |
theme: ThemeData( |
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:async"; | |
import "package:flutter_test/flutter_test.dart"; | |
void main() { | |
Future future; | |
setUp(() { | |
future = new Future.value(); | |
}); |
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:async"; | |
import "package:flutter_test/flutter_test.dart"; | |
void main() { | |
Future future; | |
setUp(() { | |
future = new Future.value(); | |
}); | |
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 StoragePlugin { | |
Future<String> getString(String key) async { | |
if (Platform.isIos) { | |
return await callMethodChannel('fetchValue', {'id': base64encode(key)}); | |
} else if (Platform.isAndroid) { | |
return await callMethodChannel('fetchValue', {'id': 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
class StoragePlugin { | |
/// Reads a string | |
Future<String> getString(String key) async {} | |
/// Writes a string | |
Future<void> setString(String key, String value) async {} | |
} |
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
> School App [App Context] | |
> Student [Student Context] | |
> Student Grades | |
> Student Bio | |
> Teacher [Teacher Context] | |
> Teacher Courses | |
> Teacher Bio |
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
> School App [App Context] | |
> Student [Student Context] | |
> Grades | |
> Bio | |
> Teacher [Teacher Context] | |
> Courses | |
> Bio |
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 TeamContext { | |
int teamId; | |
String teamName; | |
} | |
class StudentContext { | |
int studentId; | |
String studentName; | |
} | |
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 MyAppContext { | |
int teamId; | |
String teamName; | |
int studentId; | |
String studentName; | |
int classId; | |
... | |
} |
NewerOlder