add theme

This commit is contained in:
jyuesong
2022-01-17 17:25:49 +08:00
parent afd2b30616
commit e68fff867e
6 changed files with 494 additions and 246 deletions

View File

@@ -3,7 +3,6 @@ import 'package:flutter/material.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'package:qinglong_app/base/ql_app_bar.dart';
import 'package:qinglong_app/base/routes.dart';
import 'package:qinglong_app/base/theme.dart';
import 'package:qinglong_app/module/config/config_page.dart';
import 'package:qinglong_app/module/env/env_page.dart';
import 'package:qinglong_app/module/others/other_page.dart';
@@ -54,6 +53,25 @@ class _HomePageState extends ConsumerState<HomePage> {
),
),
));
} else if (_index == 1) {
actions.add(InkWell(
onTap: () {
Navigator.of(context).pushNamed(
Routes.route_AddEnv,
);
},
child: const Padding(
padding: EdgeInsets.symmetric(
horizontal: 15,
),
child: Center(
child: Icon(
CupertinoIcons.add,
size: 20,
),
),
),
));
} else if (_index == 2) {
actions.add(InkWell(
onTap: () {