Files
sdk/samples-dev/swarm/ConfigHintDialog.dart
T
Vijay Menon a9092c76ac Apply dart fix to swarm sample
Change-Id: Ib111d262b0dc2572ce6cb773aed5547fe897b4dd
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/252520
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Vijay Menon <vsm@google.com>
2022-08-01 15:57:53 +00:00

40 lines
1.1 KiB
Dart

// Copyright (c) 2011, the Dart 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.
// @dart = 2.9
part of swarmlib;
/** A placeholder dialog that just passes the buck to Reader on feed
configuration. */
class ConfigHintDialog extends DialogView {
CompositeView _parent;
Function _doneHandler;
factory ConfigHintDialog(CompositeView parent, Function doneHandler) {
View content = ConfigHintDialog.makeContent();
return ConfigHintDialog._impl(parent, doneHandler, content);
}
ConfigHintDialog._impl(this._parent, this._doneHandler, View content)
: super('Feed configuration', '', content);
@override
void onDone() {
_doneHandler();
}
static View makeContent() {
return View.html('''
<div>
Add or remove feeds in
<a href="https://www.google.com/reader" target="_blank">
Google Reader</a>'s "Subscriptions".
Then come back here and click "Done" and we'll load your updated
list of subscriptions.
</div>
''');
}
}