You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
937 B
Dart
40 lines
937 B
Dart
import 'package:flutter/material.dart';
|
|
|
|
class SettingMenu extends StatelessWidget {
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return IconButton(
|
|
// action button
|
|
icon: Icon(Icons.settings),
|
|
onPressed: () {
|
|
debugPrint("Click Menu Setting");
|
|
},
|
|
);
|
|
}
|
|
}
|
|
|
|
class PeakAppBar extends StatelessWidget implements PreferredSizeWidget {
|
|
PeakAppBar({Key key, @required this.title, this.actions}) : super(key: key);
|
|
|
|
final String title;
|
|
final List<Widget> actions;
|
|
|
|
PeakAppBar.defaultSetting({Key key, @required this.title}) : actions = null;
|
|
// todo settings page
|
|
//: actions=<Widget>[SettingMenu()];
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return PreferredSize(
|
|
child: AppBar(
|
|
title: Text(this.title),
|
|
actions: this.actions,
|
|
),
|
|
preferredSize: preferredSize,
|
|
);
|
|
}
|
|
|
|
@override
|
|
Size get preferredSize => Size.fromHeight(45.0);
|
|
}
|