Skip to content

Commit

Permalink
add
Browse files Browse the repository at this point in the history
  • Loading branch information
王金东 committed Feb 6, 2024
1 parent 27a2131 commit df5a8fa
Show file tree
Hide file tree
Showing 7 changed files with 53 additions and 89 deletions.
42 changes: 0 additions & 42 deletions .idea/libraries/Flutter_Plugins.xml

This file was deleted.

9 changes: 4 additions & 5 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added assets/fonts/NotoSansSC-Regular.ttf
Binary file not shown.
Binary file added assets/fonts/Roboto-Bold.ttf
Binary file not shown.
Binary file modified assets/fonts/Roboto-Regular.ttf
Binary file not shown.
88 changes: 47 additions & 41 deletions lib/pages/top_nav/main_top_widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -59,49 +59,55 @@ class MainTopWidget extends StatelessWidget {
UniversalDashboard.of(context)?.openOrCloseLeftMenu();
},
),
Row(
mainAxisSize: MainAxisSize.min,
children: [
const SizedBox(
width: 100,
child: TextField(
decoration: InputDecoration(
isCollapsed: true,
hintText: '站内搜索',
contentPadding: EdgeInsets.only(left: 5, bottom: 10, right: 5, top: 10),
Expanded(
child: SingleChildScrollView(
reverse: true,
scrollDirection: Axis.horizontal,
child: Row(
mainAxisSize: MainAxisSize.min,
children: [
const SizedBox(
width: 100,
child: TextField(
decoration: InputDecoration(
isCollapsed: true,
hintText: '站内搜索',
contentPadding: EdgeInsets.only(left: 5, bottom: 10, right: 5, top: 10),
),
style: TextStyle(fontSize: 10),
),
),
style: TextStyle(fontSize: 10),
),
),
_buildUserHead(),
IconButton(
icon: const Icon(
Icons.notifications_none,
size: 16,
),
onPressed: () {
_showNotificationPage(context);
},
),
IconButton(
icon: Icon(
context.watch<DashboardModel>().openFullScreen ? Icons.fullscreen_exit : Icons.fullscreen,
size: 16,
),
onPressed: () {
context.read<DashboardModel>().openOrCloseFullScreen(context);
},
),
IconButton(
icon: const Icon(
Icons.settings,
size: 16,
),
onPressed: () {
UniversalDashboard.of(context)?.openOrCloseSetting();
},
_buildUserHead(),
IconButton(
icon: const Icon(
Icons.notifications_none,
size: 16,
),
onPressed: () {
_showNotificationPage(context);
},
),
IconButton(
icon: Icon(
context.watch<DashboardModel>().openFullScreen ? Icons.fullscreen_exit : Icons.fullscreen,
size: 16,
),
onPressed: () {
context.read<DashboardModel>().openOrCloseFullScreen(context);
},
),
IconButton(
icon: const Icon(
Icons.settings,
size: 16,
),
onPressed: () {
UniversalDashboard.of(context)?.openOrCloseSetting();
},
),
],
),
],
),
),
],
),
Expand Down
3 changes: 2 additions & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,9 @@ flutter:
- family: Roboto
fonts:
- asset: assets/fonts/Roboto-Regular.ttf
- asset: assets/fonts/Roboto-Bold.ttf
- family: Noto Sans SC
fonts:
- asset: assets/fonts/k3kXo84MPvpLmixcA63oeALhL4iJ-Q7m8w.otf
- asset: assets/fonts/NotoSansSC-Regular.ttf
# For details regarding fonts from package dependencies,
# see https://flutter.dev/custom-fonts/#from-packages

0 comments on commit df5a8fa

Please sign in to comment.