tag:blogger.com,1999:blog-581197352358126527.post5933462922690340706..comments2024-03-28T00:32:25.959-07:00Comments on japh(r) by Chris Strom: Code Organization in DartAnonymoushttp://www.blogger.com/profile/00135361916531185929noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-581197352358126527.post-71407186027249996372012-02-04T10:28:57.526-08:002012-02-04T10:28:57.526-08:00I stand corrected, Kasper Lund (and the Dart Lang ...I stand corrected, Kasper Lund (and the Dart Lang spec) pointed out that prefix names do not need to unique. More here: https://plus.google.com/117928918793969810642/posts/23jbDrM4djWAnonymoushttps://www.blogger.com/profile/13906800552603557213noreply@blogger.comtag:blogger.com,1999:blog-581197352358126527.post-66604092036215710232012-02-04T10:15:52.497-08:002012-02-04T10:15:52.497-08:00Hi Chris,
This isn't a bug, the prefixes for ...Hi Chris,<br /><br />This isn't a bug, the prefixes for library import are there to disambiguate the libraries and add a namespace.<br /><br />For your use case, I recommend create a library called Views, and #source() each view file into it.<br /><br />#library('Views');<br /><br />#source('Views.Comics.dart');<br />#source('Views.AddComic.dart');<br /><br />then over in your main file:<br /><br />#import('Views.dart', prefix: 'Views');<br /><br />Hope that helps,<br />SethAnonymoushttps://www.blogger.com/profile/13906800552603557213noreply@blogger.com