♿ Move about page link from account to settings
This commit is contained in:
		@@ -26,7 +26,6 @@ class _AccountScreenState extends State<AccountScreen> {
 | 
				
			|||||||
        'accountPersonalize'
 | 
					        'accountPersonalize'
 | 
				
			||||||
      ),
 | 
					      ),
 | 
				
			||||||
      (const Icon(Icons.diversity_1), 'accountFriend'.tr, 'accountFriend'),
 | 
					      (const Icon(Icons.diversity_1), 'accountFriend'.tr, 'accountFriend'),
 | 
				
			||||||
      (const Icon(Icons.info_outline), 'about'.tr, 'about'),
 | 
					 | 
				
			||||||
    ];
 | 
					    ];
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    final AuthProvider auth = Get.find();
 | 
					    final AuthProvider auth = Get.find();
 | 
				
			||||||
@@ -41,7 +40,10 @@ class _AccountScreenState extends State<AccountScreen> {
 | 
				
			|||||||
                mainAxisSize: MainAxisSize.min,
 | 
					                mainAxisSize: MainAxisSize.min,
 | 
				
			||||||
                children: [
 | 
					                children: [
 | 
				
			||||||
                  ActionCard(
 | 
					                  ActionCard(
 | 
				
			||||||
                    icon: const Icon(Icons.login, color: Colors.white),
 | 
					                    icon: Icon(
 | 
				
			||||||
 | 
					                      Icons.login,
 | 
				
			||||||
 | 
					                      color: Theme.of(context).colorScheme.onPrimary,
 | 
				
			||||||
 | 
					                    ),
 | 
				
			||||||
                    title: 'signin'.tr,
 | 
					                    title: 'signin'.tr,
 | 
				
			||||||
                    caption: 'signinCaption'.tr,
 | 
					                    caption: 'signinCaption'.tr,
 | 
				
			||||||
                    onTap: () {
 | 
					                    onTap: () {
 | 
				
			||||||
@@ -59,7 +61,10 @@ class _AccountScreenState extends State<AccountScreen> {
 | 
				
			|||||||
                    },
 | 
					                    },
 | 
				
			||||||
                  ),
 | 
					                  ),
 | 
				
			||||||
                  ActionCard(
 | 
					                  ActionCard(
 | 
				
			||||||
                    icon: const Icon(Icons.add, color: Colors.white),
 | 
					                    icon: Icon(
 | 
				
			||||||
 | 
					                      Icons.add,
 | 
				
			||||||
 | 
					                      color: Theme.of(context).colorScheme.onPrimary,
 | 
				
			||||||
 | 
					                    ),
 | 
				
			||||||
                    title: 'signup'.tr,
 | 
					                    title: 'signup'.tr,
 | 
				
			||||||
                    caption: 'signupCaption'.tr,
 | 
					                    caption: 'signupCaption'.tr,
 | 
				
			||||||
                    onTap: () {
 | 
					                    onTap: () {
 | 
				
			||||||
@@ -184,7 +189,7 @@ class ActionCard extends StatelessWidget {
 | 
				
			|||||||
            crossAxisAlignment: CrossAxisAlignment.start,
 | 
					            crossAxisAlignment: CrossAxisAlignment.start,
 | 
				
			||||||
            children: [
 | 
					            children: [
 | 
				
			||||||
              CircleAvatar(
 | 
					              CircleAvatar(
 | 
				
			||||||
                backgroundColor: Colors.indigo,
 | 
					                backgroundColor: Theme.of(context).colorScheme.primary,
 | 
				
			||||||
                child: icon,
 | 
					                child: icon,
 | 
				
			||||||
              ).paddingOnly(bottom: 12),
 | 
					              ).paddingOnly(bottom: 12),
 | 
				
			||||||
              Text(
 | 
					              Text(
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -4,6 +4,7 @@ import 'package:provider/provider.dart';
 | 
				
			|||||||
import 'package:shared_preferences/shared_preferences.dart';
 | 
					import 'package:shared_preferences/shared_preferences.dart';
 | 
				
			||||||
import 'package:solian/exts.dart';
 | 
					import 'package:solian/exts.dart';
 | 
				
			||||||
import 'package:solian/providers/theme_switcher.dart';
 | 
					import 'package:solian/providers/theme_switcher.dart';
 | 
				
			||||||
 | 
					import 'package:solian/router.dart';
 | 
				
			||||||
import 'package:solian/theme.dart';
 | 
					import 'package:solian/theme.dart';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
class SettingScreen extends StatefulWidget {
 | 
					class SettingScreen extends StatefulWidget {
 | 
				
			||||||
@@ -79,6 +80,21 @@ class _SettingScreenState extends State<SettingScreen> {
 | 
				
			|||||||
                  .toList(),
 | 
					                  .toList(),
 | 
				
			||||||
            ).paddingSymmetric(horizontal: 12, vertical: 8),
 | 
					            ).paddingSymmetric(horizontal: 12, vertical: 8),
 | 
				
			||||||
          ),
 | 
					          ),
 | 
				
			||||||
 | 
					          _buildCaptionHeader('more'.tr),
 | 
				
			||||||
 | 
					          Row(
 | 
				
			||||||
 | 
					            mainAxisAlignment: MainAxisAlignment.start,
 | 
				
			||||||
 | 
					            children: [
 | 
				
			||||||
 | 
					              TextButton(
 | 
				
			||||||
 | 
					                style: const ButtonStyle(
 | 
				
			||||||
 | 
					                  visualDensity: VisualDensity(horizontal: -4, vertical: -4),
 | 
				
			||||||
 | 
					                ),
 | 
				
			||||||
 | 
					                child: Text('about'.tr),
 | 
				
			||||||
 | 
					                onPressed: () {
 | 
				
			||||||
 | 
					                  AppRouter.instance.pushNamed('about');
 | 
				
			||||||
 | 
					                },
 | 
				
			||||||
 | 
					              ),
 | 
				
			||||||
 | 
					            ],
 | 
				
			||||||
 | 
					          ).paddingSymmetric(horizontal: 12, vertical: 8),
 | 
				
			||||||
        ],
 | 
					        ],
 | 
				
			||||||
      ),
 | 
					      ),
 | 
				
			||||||
    );
 | 
					    );
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -10,6 +10,7 @@ const i18nEnglish = {
 | 
				
			|||||||
  'draft': 'Draft',
 | 
					  'draft': 'Draft',
 | 
				
			||||||
  'draftSave': 'Save',
 | 
					  'draftSave': 'Save',
 | 
				
			||||||
  'draftBox': 'Draft Box',
 | 
					  'draftBox': 'Draft Box',
 | 
				
			||||||
 | 
					  'more': 'More',
 | 
				
			||||||
  'share': 'Share',
 | 
					  'share': 'Share',
 | 
				
			||||||
  'feed': 'Feed',
 | 
					  'feed': 'Feed',
 | 
				
			||||||
  'feedSearch': 'Search Feed',
 | 
					  'feedSearch': 'Search Feed',
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -18,6 +18,7 @@ const i18nSimplifiedChinese = {
 | 
				
			|||||||
  'draft': '草稿',
 | 
					  'draft': '草稿',
 | 
				
			||||||
  'draftSave': '存为草稿',
 | 
					  'draftSave': '存为草稿',
 | 
				
			||||||
  'draftBox': '草稿箱',
 | 
					  'draftBox': '草稿箱',
 | 
				
			||||||
 | 
					  'more': '更多',
 | 
				
			||||||
  'share': '分享',
 | 
					  'share': '分享',
 | 
				
			||||||
  'feed': '资讯',
 | 
					  'feed': '资讯',
 | 
				
			||||||
  'feedSearch': '搜索资讯',
 | 
					  'feedSearch': '搜索资讯',
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user