/**
* Created by Dmitry Diachenko on Feb 18, 2020
* powered by leaditteam.com
**/
//MARK: widget ext
extension WidgetExtension on Widget {
Widget setVisibility(VisibilityFlag flag) {
return MyVisibility(visibility: flag, child: this);
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
{ | |
"kind": "androidpublisher#inappproductsListResponse", | |
"inappproduct": [ | |
{ | |
"packageName": "com.leaditteam.mapotravelguide", | |
"sku": "4.99_test_e", | |
"status": "active", | |
"purchaseType": "managedUser", | |
"defaultPrice": { | |
"priceMicros": "4990000", |
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
// | |
// ARVideoContainer.swift | |
// ARConcept | |
// | |
// Created by Dmitry Dyachenko on 2/1/21. | |
// | |
import SwiftUI | |
import AVKit | |
import SceneKit |
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
/// datasetName = test_dev | |
static Future<void> generateLabels(String datasetName) async { | |
//const FUNCTIONS_URL = "us-central1-testproject-afd2f.cloudfunctions.net"; | |
final response = await http.get(Uri.https( | |
FUNCTIONS_URL, "/generateLabelFile", {"dataset": datasetName})); | |
if (response.statusCode == 200) { | |
return Future.value(); | |
} else { | |
throw Exception("Error while generating label file: " + response.body); |
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
bool calcOverflowClosestElement( | |
{@required List<SuggestionItem> line, | |
@required SuggestionItem current, | |
bool check = false}) { | |
for (SuggestionItem element in line) { | |
if (current.rect.intersect(element.rect).height > 0 && | |
current.rect.intersect(element.rect).width > 0) { | |
if (current.rect.intersect(element.rect).height > 0) { | |
if (!check) { | |
current.y += element.rect.intersect(current.rect).height; |
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
rowsList.asMap().entries.forEach((rows) { | |
//нам нужно определить пересекается ли текущий элемент с элементом который слева или же сверху, если пересекается, | |
//тогда текущий элемент мы двигаем вниз или справо в зависимости | |
//mark: left | |
if (currentRow.iRow != 0) { | |
calcOverflowLeft(rowsList.elementAt(currentRow.iRow - 1), currentRow); | |
} | |
//mark: top | |
if (currentRow.iColumn != 0) { | |
calcOverflowTop( |
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
List<Widget> childerCards() { | |
List<Widget> cardsMatrixWidgets = []; | |
suggestionMatrix.entries.forEach((columns) { | |
int iColumn = columns.key; | |
List<SuggestionItem> rowsList = columns.value; | |
rowsList.asMap().entries.forEach((rows) { | |
///get all widgets | |
cardsMatrixWidgets.add(AnimatedPositioned.fromRect( | |
duration: Duration(milliseconds: widget.stackAnimatedDuration), |
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
suggestionMatrix = Map.from(suggestionMatrix.map((key, value) { | |
final endIndex = (rowCount * (key + 1)); | |
return MapEntry( | |
key, | |
widget.items | |
.getRange( | |
rowCount * key, | |
endIndex < widget.items.length | |
? endIndex | |
: widget.items.length) |
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
1 файл receive.dart получение (тебя интересует listenDynamicLinks) | |
2 класс создание( тут все по гайдам, строчка 24 ) | |
ДЛЯ ОТКРЫТИЯ САЙТА В СЛУЧАЕЕ НЕ УСТАНОВЛЕННОГО ПРИЛОЖЕНИЯ | |
linkProperties.addControlParameter("$desktop_url", "https://example.com/home"); |
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
mobile(bool isDesktop, NewsListState state) { | |
return Container( | |
child: CustomScrollView( | |
slivers: <Widget>[ | |
SliverList( | |
delegate: SliverChildListDelegate([ | |
Row( | |
children: [ | |
Text(NewsLocalizations.of(context).titleNews, | |
style: Theme.of(context).textTheme.headline3) |