Dart: Tips Of The Day
906 subscribers
32 photos
8 links
Author: @plugfox

Chats:
@en_dart
@ru_dart
Download Telegram
#tipoftheday #dart #dartdev #dartlang #flutter #flutterdev #plugfox

You can add config like that to the Visual Studio Code's settings.json to enable files folding by a specific pattern.


${capture}: Matches the resolved value of the * from the parent pattern

${basename}: Matches the parent file's basename, the file in file.ts

${extname}: Matches the parent file's extension, the ts in file.ts

${dirname}: Matches the parent file's directory name, the src in src/file.ts
*: Matches any string, may only be used once per child pattern
10
#tipoftheday #dart #dartdev #dartlang #flutter #flutterdev #plugfox

With dart:developer and Perfomance Dev Tools you can evaluate the impact of synchronous operations on the interface in a UI thread, as well as measure their performance and decide whether to use an isolate for heavy operations.
25
Most developers don't know how to debug WebView and CustomTabs and track network requests, layouts, and errors.

But it's very simple
1) Start debugging on your phone or emulator as usual
2) Open in chrome ON YOUR DESKTOP the link chrome://inspect/#devices
3) Find the web view of the SMARTPHONE on this page
4) Click “inspect
5) Debug with DevTools like a regular website, console, network requests, etc. You can also see what's happening on the screen

#tipoftheday #dart #dartdev #dartlang #flutter #flutterdev #plugfox #devtools #webview
35
adb shell "input keyevent 61 \
&& input text [email protected] \
&& input keyevent 61 \
&& input text password \
&& input keyevent 66"


#tipoftheday #dart #dartdev #dartlang #flutter #flutterdev #plugfox
23