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
| <core:FragmentDefinition | |
| xmlns="sap.m" | |
| xmlns:core="sap.ui.core" | |
| > | |
| <TableSelectDialog | |
| id="ValueHelpTableWithSearch-dialog" | |
| noDataText="No items found. You also may close and reopen the dialog to refresh the data." | |
| showClearButton="true" | |
| class="sapUiResponsivePadding--header sapUiResponsivePadding--subHeader sapUiResponsivePadding--content sapUiResponsivePadding--footer" | |
| busyIndicatorSize="Auto" |
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
| try { | |
| this.getView().setBusy(true); | |
| let oModel = this.getOwnerComponent().getModel("oDataV4Model"); | |
| // data is an object containing the properties for the new entry | |
| const data = {key_1: "value_1", property_1: "value_2"}; | |
| const oModelListBinding = oModel.bindList("/entity"); | |
| // Create: | |
| oModelListBinding.create({ |
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:math' show Random; | |
| import 'dart:ui' as ui show Gradient; | |
| import 'package:flutter/material.dart'; | |
| class TechnologicalLinesAnimation extends StatefulWidget { | |
| _TechnologicalLinesAnimationState createState() => _TechnologicalLinesAnimationState(); | |
| } | |
| class _TechnologicalLinesAnimationState extends State<TechnologicalLinesAnimation> { |
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
| static string char2Hex(unsigned char _char) { | |
| string hex; | |
| int ascii_int = int(_char); | |
| char hex_array[20]; | |
| int i = 0; | |
| while (ascii_int != 0) { | |
| int temp = 0; | |
| temp = ascii_int % 16; | |
| if (temp < 10) { |
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'; | |
| import 'package:flutter/material.dart'; | |
| import 'package:http/http.dart'; | |
| import 'package:path_provider/path_provider.dart'; | |
| void main() { | |
| runApp(MyApp()); | |
| } |
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
| downloadFile() async { | |
| // Your stored url. | |
| String url = | |
| "add url"; | |
| // Getting the http response | |
| Response response = await get(url); | |
| int statusCode = response.statusCode; | |
| print(statusCode); // for debugging purpose |
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
| /// Renders veg or Non veg icon according t0 [vegOrNonVeg]. | |
| /// [height], [width] specifies size of the icon. | |
| class VegNonVegIcon extends StatefulWidget { | |
| final double height; | |
| final double width; | |
| final bool vegOrNonVeg; | |
| VegNonVegIcon({ | |
| @required this.width =1.5, | |
| @required this.height =1 , |
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:math' show pi, pow; | |
| void main() { | |
| final double lat1=50.06638889; | |
| final double lat2=58.64388889; | |
| final double lng1=5.71472222; | |
| final double lng2=3.06777778; | |
| /// Calculates the minimum distance between ([lat1],[lng1]) and ([lat2],[lng2]). | |
| /// The function returns the distance in meters. |
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
| void main() { | |
| // This jut stimulates elevations in a small trip | |
| // instead of this list call the functions whenever you record a elevation. | |
| // and on the end of the trip call the [onStopTrip] function. | |
| List<double> listOfDemoElevations = [ | |
| 200.0, | |
| 300.0, | |
| 400.0, | |
| 1000.0, | |
| 800.0, |
NewerOlder