Questions tagged [angular-dart]

AngularDart is a web app framework that focuses on productivity, performance, and stability.

angular-dart
Filter by
Sorted by
Tagged with
4 votes
1 answer
454 views

How to deploy angulardart 5.2 properly for production?

On the angulardart official website, I cannot find any docs related to production deployment. I prefer command line way, so far I find out I can do webdev build to generate a build/ directory. But ...
35 votes
12 answers
56k views

pub global activate command - $HOME/.pub-cache/bin not on path

I was trying to install dart2 recently, but when I try to install pub global activate stagehand, it comes with a warning. Warning: Pub installs executables into $HOME/.pub-cache/bin, which is not ...
1 vote
1 answer
9k views

Unable to install dart-sdk?

I want to get stated with flutter-web so I am trying to install dart-sdk. I tried to install it by choco install dart-sdk and its setup but it just dosent install C:\WINDOWS\system32>choco install ...
35 votes
3 answers
21k views

How to do something before object destruction in Dart?

In Java we can do something like override finalize(), in C++ we can do something like ~Someclass(), But How can I do it in dart, I read the doc in https://www.dartlang.org/ but did not find answers.
0 votes
0 answers
47 views

Why doesn't the widget rebuild with the setState function?

I would like to rebuild the widget, when the value of the variable 'player' changes. The variable 'player' is a global variable. The class spielerAnzeige is a stateful widget and i also called ...
23 votes
5 answers
33k views

I am getting the following error on running flutter create my_appName: "my_appName" is not a valid Dart package name

I have tried upgrading flutter to the latest version. I am still getting the same error.
2 votes
2 answers
457 views

Insights on Inactive Tab Throttling involving Timers

I am building a web app where we have a definition of session length and when the user exceeds the length we have to show a timeout popup to the user. Currently I have a periodic timer which runs ...
0 votes
0 answers
41 views

Null checker null safety error how i can stopped it

I'm designing a mobile Application ,it looks like "WhatsApp" I initiate class called "chat model" when i run app it gives me "Null safety error or null checker" I want to ...
0 votes
1 answer
102 views

flutter build runner showing error and cannot generate files

enter image description here part 'data_model.g.dart'; target hasn't been generated I have tried so many ways to fix it but it does not work anyone can give a answer to solve it. I tried updating ...
0 votes
1 answer
69 views

'int' member does not work as @Input() in child component

In the following code, the value of the int member clicked_number does not change whereas the value of the Cint member cint does. @Component( selector: 'my-app', template: ''' <h3> ...
10 votes
6 answers
10k views

Dart analyzer is not parsing the dynamic generated files

I checked and the file is OK. Dart 1.23.0 AngularDart 3.1.0 The error I am getting is: Target of URI hasn't been generated: 'file.g.dart'
1 vote
3 answers
781 views

How to detect opening of a websocket connection from a controller

I have a controller (MyController), which requests data from a websocket connection (wsService) while initialising. What is the best way to detect and wait that the websocket connection is open and ...
2 votes
3 answers
507 views

Drop events are not firing in AngularDart app however Drag events are firing

my first post on SO! In short, I'm researching Dart drag & drop libraries for use in an AngularDart project. I have created an example repo (https://bitbucket.org/johnryanancoa/componentdecorator/...
4 votes
1 answer
1k views

Dart / AngularDart - how to create diagram/flowchart?

Could someone please point me to some tutorial or provide an example code snippet about how to create a diagram/flowchart in Dart? The simple scenario would be to have couple of elements connectable ...
0 votes
1 answer
105 views

Pass event from parent component to child component in AngularDart?

I know how to pass an event from child to parent with StreamController and @Output(), but what if we want to do it the other way around? Also what if our child component is 2 levels down from the ...
1 vote
1 answer
65 views

Using String extension method defined in library in angular dart template

I created String class extension and trying to use new method in angular dart template. But webapp build fails because of new method wasn't found. How can I use extension methods in template? Here is ...
0 votes
1 answer
684 views

Get MIME type of File object

I have a dart:html File object and I want to determine the MIME type from the file contents rather than the extension.
0 votes
1 answer
170 views

Suggest best practices and interesting ideas for an Angular app [closed]

In my company, we have an angular dart application that was initially built by backend engineers that became frontend engineers, next week, we have a brainstorming session of how we can improve our ...
1 vote
0 answers
32 views

How Can Angular Dart app be exported as library and be used in Angular Typescript project?

There is a AngularDart app with some components which i want to use in an Angular Typescript app, how can this be possible? How Can Angular Dart app be exported as library and be used in Angular ...
4 votes
4 answers
3k views

How Do I Install Dart v2?

Ive looked all over the official Dart site. They go into great depth about 'dev' channels and 'stable' channels but no clue whatsover about how to actually install a version of the SDK. There is no ...
4 votes
1 answer
2k views

Advantage to use Route instead *ngIf to control Angular View Component?

In the Tutorial Angular example it is used Route to select and control Angular View Component. I know that we can to use the *ngIf directive to select a View. This way, I think that is more readable. ...
0 votes
1 answer
95 views

How to use custom HTML and Styling in AngularDart Material Expansion Panel heading?

Is it possible to use custom HTML and Styling in a AngularDart Material Expansion Panel heading? I would ideally like to add a material-chip next to a title. For example next to 'Ordinary Panel' in ...
0 votes
0 answers
874 views

Is it possible to convert a angular PWA to a flutter application or maybe combine the both?

I am trying to convert an Angular PWA to a Flutter application as the mobile version of the Angular app is not exactly performing all the necessary steps. I would be fine with combining the both ...
26 votes
9 answers
35k views

How to convert DateTime into different timezones?

How to convert DateTime into different timezones? The DateTime class has two methods .toLocal() and .toUtc(). But if I want to display time in another time zone. How can I do it?
0 votes
3 answers
209 views

How To Create A New Angular Dart Project On VS Code

I already installed Dart extension for VS Code and also tried ngdart but it isnt working So I pressed CTRL+SHIFT+P And picked > Dart: New Project but there is no option for Angular Dart Web App ...
1 vote
3 answers
12k views

How to get user input on dartpad online?

How can I get user input in console on dartpad? Whenever i write import 'dart:io'; void main() { stdout.write("What's your name? "); var name = stdin.readLineSync(); print("Hi, $name!"); } ...
0 votes
0 answers
594 views

pubspec.yaml Conflicting deps with web3dart

Trying to incorporate the web3dart package into my project. When I run pub get I receive the error: web3dart ^0.3.0 requires build_runner ^0.8.0. When I change build_runner to ^0.8.0 my project ...
1 vote
2 answers
639 views

How to merge two JSON response into one in a Structure In Flutter

This response is from one API call. JSON Response 1: { "message": "success", "data": [ { "storeid": "91", "productid": &...
0 votes
1 answer
575 views

Dart webdev package activated globally, but webdev command is not working

I was trying to create a project with angular dart, and I've activated webdev globally ad the documentation suggested by running "dart pub global activate webdev", but when I try to run &...
3 votes
2 answers
1k views

RxDart. BehaviorSubject & Distinct

I'm using BehaviorSubject and it's emitting back last item on subscription as expected. However, sometimes, data is not changed and and with new listen event will be triggered back with last emitted ...
0 votes
1 answer
200 views

This function has a return type of 'FutureOr<Xmodel>, but doesnt end with a return statement

I'm trying to integrate a stock API into my app. I'm trying to create a service page but I get this error. I searched for similar topics but I couldn't find a solution. import 'dart:convert'; import '...
0 votes
2 answers
3k views

The getter 'name' isn't defined for the type 'StatefulWidget' flutter

I am getting this error, can't print the value in name. Why do I get errors like that here? The getter 'name' isn't defined for the type 'StatefulWidget'. Try importing the library that defines 'name',...
0 votes
1 answer
656 views

Send Email for SMTP wtih Mailer/Mailer2 in Dart

i have the next problem whe send a mail for smtp Dart VM version: 2.1.0-dev.6.0 (Thu Sep 27 09:51:34 2018 +0200) on "macos_x64" pubspec.yaml environment: sdk: '>=2.0.0 <3.0.0' ...
-1 votes
1 answer
1k views

How to extract the text between (%) and (?) from a String?

I want to extract the slug between (%) and (?) from a String url? This is the url as string. https://xyz.page.link/product/prdt%3D29c1118b344a53949824990eec6bd267?amv=24&apn=com.example.example&...
7 votes
4 answers
14k views

querySelector does not seem to find elements inside ng-container

I am developing a web application using angular dart. I am trying to find a 'div' element inside the component using document.querySelector() and I am trying to modify(add some content to) its body. ...
5 votes
2 answers
4k views

webdev error when ran without pub on windows

I do AngularDart development on Windows 10. I'm getting strange behavior with webdev recently. I have to run webdev like this: C:\Users\galankus>C:\tools\dart-sdk\bin\pub.bat global run webdev A ...
3 votes
2 answers
3k views

Syntax for Specifying file path (relative and absolute)

I want to know a way of specifying the path of files. I am currently following: href="css/lib/bootstrap.css" I find that some people specify the file location in a different way: templateUrl: 'lib:...
3 votes
4 answers
960 views

Angular Dart is giving error : The getter 'injector$Injector' isn't defined for the class 'self'

I am just trying Routing in Angular Dart. I was following this https://webdev.dartlang.org/angular/guide/router/1 guide but I am getting an error. This line is giving error final InjectorFactory ...
1 vote
1 answer
114 views

Angular Dart project, why am I seeing error runApp(ng.AppComponentNgFactory)

I am new to Angular Dart. I have installed Dart, and added dart plugin in VS code. Then I created a bare bone project thru VS command pallette. But when I added this line in main.dart, I got build ...
6 votes
3 answers
3k views

What is the difference and preferred way between jsonEncode() and json.encode() in Dart?

In Flutter doc, it uses jsonEncode(), while in Angular doc, it uses json.encode(). What is the difference and preferred way between the two?
2 votes
1 answer
77 views

Angular Dart Portals

I'm looking for some examples or documentation for how to implement DOM or component Portals in Angular Dart. I've found the portal.dart source and the definition of the Portal library in Angular ...
2 votes
3 answers
666 views

loading google map in angular.dart view (ng-view)

I am trying to create a single page app in angular.dart with multiple views, but I cant find a working example of loading up a Google Map in a view being routed into. I am using the google_maps ...
0 votes
0 answers
36 views

Double way binding and shared List

In my application I have a quite big set of Data Preloaded at startup and stored in ContextManager.allSkills (a Map<int, Skill> where Skill is a custom class). Now, in a component I have a data-...
0 votes
1 answer
48 views

Get Instance of a Dart Component defined in html

In my AngularDart app I have template defined in page.html, the interesting chunk of this template is <skawa-data-table [data]="selectableRowData" [selectable]="true" [...
0 votes
1 answer
18 views

AngularDart CurrentInstruction

I am trying to update angular2 to latest version. Several of the functions are missing I would like to know what is the alternate for the following function final RouteParams _params; String get ...
0 votes
1 answer
144 views

How do I read a value from a child component

I have two components: @Component( selector: 'parent', directives: [ ChildComponent, ], templateUrl: 'parent.html', ) class ParentComponent { Result parentResult; } and @Component( ...
0 votes
1 answer
168 views

Dart Angular and JSON encoding

I'm having and encoding issue on the application I'm working on. Is written in Angular Dart with Spring Boot on the backend. Those are variables i use for the request, along the header with the ...
0 votes
1 answer
135 views

Can LESS styles be applied to an Angular Dart component?

Is there any possibility to add LESS styles to angular.dart component? It would be great if they would run in run-time, without compilation to CSS. I'm afraid it can be quite difficult due to Shadow ...
0 votes
2 answers
210 views

How can i get my system to recognize webdev as a command?

I have worked in flutter for a while and thought i would check out AngularDart with a small project. I have got everything setup in VSCode and have run 'flutter pub global activate webdev' with ...
3 votes
0 answers
1k views

How can I run webdev with dart?

How can ı dartlang patch for web dartlang running but webdev dart didnt work > stagehand web-simple > pub get > webdev serve commands didn't work error message C:\Users\SAMSUNG-PC>...

1
2 3 4 5
26