Last major update: 25.08.2020
- Что такое авторизация/аутентификация
- Где хранить токены
- Как ставить куки ?
- Процесс логина
- Процесс рефреш токенов
- Кража токенов/Механизм контроля токенов
| { | |
| "New dartdoc template": { | |
| "prefix": "newtmpl", | |
| "body": [ | |
| "/// {@template $TM_FILENAME_BASE.$1}", | |
| "/// $0", | |
| "/// {@endtemplate}" | |
| ], | |
| "description": "Creates a new dartdoc template with current file's name as its prefix" | |
| }, |
| import 'dart:io'; | |
| import 'dart:developer' as dev; | |
| import 'package:shelf/shelf_io.dart' as io; | |
| import 'package:shelf/shelf.dart' as shelf; | |
| import 'package:vm_service/utils.dart'; | |
| import 'package:vm_service/vm_service.dart'; | |
| import 'package:vm_service/vm_service_io.dart'; | |
| import 'package:watcher/watcher.dart'; | |
| import 'package:stream_transform/stream_transform.dart'; |
| import 'dart:async'; | |
| import 'dart:convert'; | |
| import 'dart:io'; | |
| import 'package:pure/pure.dart'; | |
| import 'package:translator/translator.dart'; | |
| const languages = [ | |
| "ru", | |
| "pt", |
| // Copyright 2017, the Flutter project authors. Please see the AUTHORS file | |
| // for details. All rights reserved. Use of this source code is governed by a | |
| // BSD-style license that can be found in the LICENSE file. | |
| import 'dart:math'; | |
| import 'package:flutter/material.dart'; | |
| void main() { | |
| runApp(new MyApp()); | |
| } |
| // MIT License | |
| // | |
| // Copyright (c) 2019 Simon Lightfoot | |
| // | |
| // Permission is hereby granted, free of charge, to any person obtaining a copy | |
| // of this software and associated documentation files (the "Software"), to deal | |
| // in the Software without restriction, including without limitation the rights | |
| // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| // copies of the Software, and to permit persons to whom the Software is | |
| // furnished to do so, subject to the following conditions: |
| import 'dart:developer' as developer; | |
| import 'package:intl/intl.dart'; | |
| // https://pub.dev/packages/vm_service | |
| import 'package:vm_service/vm_service.dart' show MemoryUsage, VM, VmService; | |
| import 'package:vm_service/vm_service_io.dart' show vmServiceConnectUri; | |
| Future<void> printHeapUsage() async { |
| import 'dart:isolate'; | |
| void main() async { | |
| final toMainIsolate = ReceivePort(); | |
| final stream = toMainIsolate; | |
| void fn(ITargetAction action) => action.handleAction(); | |
| final worker = Worker<ITargetAction>( | |
| port: toMainIsolate.sendPort, |
| import 'package:flutter/material.dart'; | |
| import 'package:flutter/rendering.dart'; | |
| import 'dart:math' as math; | |
| class CustomLayout extends MultiChildRenderObjectWidget { | |
| CustomLayout({ | |
| Key key, | |
| List<Widget> children = const <Widget>[], | |
| }) : super(key: key, children: children); |