add
This commit is contained in:
@@ -17,7 +17,7 @@ class AddExchangePage extends StatelessWidget {
|
|||||||
|
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
title: const Text('交易所'),
|
title: const Text('新增交易所'),
|
||||||
centerTitle: true,
|
centerTitle: true,
|
||||||
elevation: 4,
|
elevation: 4,
|
||||||
shadowColor: Colors.black12,
|
shadowColor: Colors.black12,
|
||||||
@@ -32,7 +32,7 @@ class AddExchangePage extends StatelessWidget {
|
|||||||
// 2. 右上角添加按钮(展示功能)
|
// 2. 右上角添加按钮(展示功能)
|
||||||
actions: [
|
actions: [
|
||||||
IconButton(
|
IconButton(
|
||||||
icon: const Icon(Icons.add),
|
icon: const Icon(Icons.save),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
// 暂为展示功能,可后续添加具体逻辑
|
// 暂为展示功能,可后续添加具体逻辑
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
import 'package:asset_assistant/pages/exchange_add_page.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
class ExchangePage extends StatelessWidget {
|
class ExchangePage extends StatelessWidget {
|
||||||
@@ -34,7 +35,11 @@ class ExchangePage extends StatelessWidget {
|
|||||||
IconButton(
|
IconButton(
|
||||||
icon: const Icon(Icons.add),
|
icon: const Icon(Icons.add),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
// 暂为展示功能,可后续添加具体逻辑
|
// 跳转到AddExchangePage
|
||||||
|
Navigator.push(
|
||||||
|
context,
|
||||||
|
MaterialPageRoute(builder: (context) => AddExchangePage()),
|
||||||
|
);
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
|||||||
Reference in New Issue
Block a user