| Index: sky/sdk/example/stocks/lib/main.dart
|
| diff --git a/sky/sdk/example/stocks/lib/main.dart b/sky/sdk/example/stocks/lib/main.dart
|
| index 6050cf5e580e050c8f8fe9ba5bd2af487e68a336..2120913d3710226a130d5374bccad3fb7316ee7a 100644
|
| --- a/sky/sdk/example/stocks/lib/main.dart
|
| +++ b/sky/sdk/example/stocks/lib/main.dart
|
| @@ -32,10 +32,13 @@ class StocksApp extends App {
|
| }
|
|
|
| void onBack() {
|
| - setState(() {
|
| - _navigationState.pop();
|
| - });
|
| - // TODO(jackson): Need a way to invoke default back behavior here
|
| + if (_navigationState.hasPrevious()) {
|
| + setState(() {
|
| + _navigationState.pop();
|
| + });
|
| + } else {
|
| + super.onBack();
|
| + }
|
| }
|
|
|
| StockMode optimismSetting = StockMode.optimistic;
|
|
|