From 21a7f3784ec70b17f27620f54284dd5be94ceb3d Mon Sep 17 00:00:00 2001 From: RainVisitor Date: Sat, 19 Sep 2020 11:04:16 +0800 Subject: [PATCH] Update home page bus text source --- lib/pages/home_page.dart | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/lib/pages/home_page.dart b/lib/pages/home_page.dart index ebdd22ca..97f001b5 100644 --- a/lib/pages/home_page.dart +++ b/lib/pages/home_page.dart @@ -1,6 +1,5 @@ import 'dart:math'; -import 'package:ap_common/api/github_helper.dart'; import 'package:ap_common/callback/general_callback.dart'; import 'package:ap_common/models/user_info.dart'; import 'package:ap_common/pages/announcement_content_page.dart'; @@ -314,11 +313,11 @@ class HomePageState extends State { ? ApTheme.of(context).blueAccent : ApTheme.of(context).grey, ), - title: Text(ap.bus, style: _defaultStyle), + title: Text(app.bus, style: _defaultStyle), children: [ DrawerSubItem( icon: ApIcon.dateRange, - title: ap.busReserve, + title: app.busReserve, onTap: () => _openPage( BusPage(initIndex: 0), needLogin: true, @@ -326,7 +325,7 @@ class HomePageState extends State { ), DrawerSubItem( icon: ApIcon.assignment, - title: ap.busReservations, + title: app.busReservations, onTap: () => _openPage( BusPage(initIndex: 1), needLogin: true, @@ -398,7 +397,7 @@ class HomePageState extends State { bottomNavigationBarItems: [ BottomNavigationBarItem( icon: Icon(ApIcon.directionsBus), - title: Text(ap.bus), + title: Text(app.bus), ), BottomNavigationBarItem( icon: Icon(ApIcon.classIcon),