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
public void deepDive(JsonObject members) { | |
for (Map.Entry<String, JsonElement> entry : members.entrySet()) { | |
System.out.println("deepDive"); | |
if (entry.getValue().isJsonArray()) { | |
JsonArray asJsonArray = entry.getValue().getAsJsonArray(); | |
asJsonArray.forEach(jsonElement -> { | |
deepDive(jsonElement.getAsJsonObject()); | |
}); | |
} else if (entry.getValue().isJsonObject()) { |
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() { | |
List<String> aListOfStrings = ['one', 'two', 'three']; | |
List<String> aNullableListOfStrings; | |
List<String> aListOfNullableStrings = ['one', null, 'three']; | |
print('aListOfStrings is $aListOfStrings.'); | |
print('aNullableListOfStrings is $aNullableListOfStrings.'); | |
print('aListOfNullableStrings is $aListOfNullableStrings.'); | |
} |
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 StatefulWidget { | |
@override | |
_MyAppState createState() => _MyAppState(); | |
} | |
class _MyAppState extends State<MyApp> { |
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 Container(); | |
} | |
} |
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
// Define a function. | |
void printInteger(int aNumber) { | |
print('The number is $aNumber.'); // Print to console. | |
} | |
// This is where the app starts executing. | |
void main() { | |
var number = 42; // Declare and initialize a variable. | |
printInteger(number); // Call a function. | |
} |
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
let oVizFrame = that.getView().byId("idcolumn"); | |
let oDataSet = new sap.viz.ui5.data.FlattenedDataset({ | |
dimensions: [ | |
{ | |
name: "Brands", | |
value: "{Model>Brand}" | |
} | |
], | |
measures: [{ |
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
Future<void> _cancelNotification() async { | |
await flutterLocalNotificationsPlugin.cancel(0); | |
} | |
/// Schedules a notification that specifies a different icon, sound and vibration pattern | |
Future<void> _scheduleNotification() async { | |
var scheduledNotificationDateTime = | |
DateTime.now().add(Duration(seconds: 5)); | |
var vibrationPattern = Int64List(4); | |
vibrationPattern[0] = 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
void main() async { | |
WidgetsFlutterBinding.ensureInitialized(); // add this | |
await setupRemoteConfig(); // add call to the remote config initalize method method | |
runApp(GetMaterialApp( | |
initialRoute: '/page1', | |
title: '', | |
theme: ThemeData.light().copyWith(primaryColor: Colors.green), | |
darkTheme: ThemeData.dark().copyWith( | |
primaryColor: Colors.purple, | |
), |
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
Future<RemoteConfig> setupRemoteConfig() async { | |
await Firebase.initializeApp(); | |
final RemoteConfig remoteConfig = await RemoteConfig.instance; | |
remoteConfig.setConfigSettings(RemoteConfigSettings(debugMode: true)); | |
remoteConfig.setDefaults(<String, dynamic>{ | |
'primary_colour': 0xFFB74093, | |
'text_body_colour': 0xFFB71000, | |
'appbar_colour': 0xFFB71000, | |
'theme': 'system', | |
'enable_custom_theme': false, |
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:get/get.dart'; | |
void main() { | |
runApp(GetMaterialApp( | |
initialRoute: '/page1', | |
title: '', | |
theme: ThemeData.light().copyWith(primaryColor: Colors.green), | |
darkTheme: ThemeData.dark().copyWith(primaryColor: Colors.purple,backgroundColor: Colors.black, ), | |
themeMode: ThemeMode.light, |
NewerOlder