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