Compare commits
No commits in common. "DataPage" and "main" have entirely different histories.
|
@ -6,7 +6,6 @@ import 'package:moody/views/color_page/color_page.dart';
|
||||||
import 'package:moody/views/entry_view/entry_page.dart';
|
import 'package:moody/views/entry_view/entry_page.dart';
|
||||||
import 'package:moody/views/first_page/first_page.dart';
|
import 'package:moody/views/first_page/first_page.dart';
|
||||||
import 'package:moody/views/home_page/home_page.dart';
|
import 'package:moody/views/home_page/home_page.dart';
|
||||||
import 'package:moody/views/settings_page/data_page.dart';
|
|
||||||
import 'package:moody/views/settings_page/settings_page.dart';
|
import 'package:moody/views/settings_page/settings_page.dart';
|
||||||
import 'package:moody/views/start_page/start_page.dart';
|
import 'package:moody/views/start_page/start_page.dart';
|
||||||
import 'package:moody/views/statistic/statistic_page.dart';
|
import 'package:moody/views/statistic/statistic_page.dart';
|
||||||
|
@ -45,10 +44,6 @@ final GoRouter _router = GoRouter(
|
||||||
path: '/color',
|
path: '/color',
|
||||||
pageBuilder: (context, state) => _noAnimationTransition(context, state, const ColorPage()),
|
pageBuilder: (context, state) => _noAnimationTransition(context, state, const ColorPage()),
|
||||||
),
|
),
|
||||||
GoRoute(
|
|
||||||
path: '/date_page',
|
|
||||||
pageBuilder: (context, state) => _noAnimationTransition(context, state, const DataPage()),
|
|
||||||
),
|
|
||||||
GoRoute(
|
GoRoute(
|
||||||
path: '/write',
|
path: '/write',
|
||||||
builder: (context, state) {
|
builder: (context, state) {
|
||||||
|
|
|
@ -1,70 +0,0 @@
|
||||||
import 'package:flutter/material.dart';
|
|
||||||
import 'package:go_router/go_router.dart';
|
|
||||||
|
|
||||||
|
|
||||||
import 'package:moody/views/settings_page/widgets/custom_divider_widget.dart';
|
|
||||||
import 'package:moody/views/settings_page/widgets/text_switch_container_widget.dart';
|
|
||||||
|
|
||||||
import '../../utils/definitions/style_guide.dart';
|
|
||||||
|
|
||||||
|
|
||||||
class DataPage extends StatefulWidget {
|
|
||||||
const DataPage({super.key});
|
|
||||||
|
|
||||||
@override
|
|
||||||
State<DataPage> createState() => _DataPage();
|
|
||||||
}
|
|
||||||
|
|
||||||
class _DataPage extends State<DataPage> {
|
|
||||||
|
|
||||||
|
|
||||||
Widget build(BuildContext context) {
|
|
||||||
return Scaffold(
|
|
||||||
backgroundColor: AppStyle.backgroundColor,
|
|
||||||
body: Container(
|
|
||||||
padding: const EdgeInsets.only(bottom: 0),
|
|
||||||
margin: const EdgeInsets.fromLTRB(30, 30, 30, 0),
|
|
||||||
child: SingleChildScrollView(
|
|
||||||
child: Column(
|
|
||||||
children: <Widget>[
|
|
||||||
const SizedBox(
|
|
||||||
height: 100,
|
|
||||||
),
|
|
||||||
|
|
||||||
// Settings section
|
|
||||||
Container(
|
|
||||||
margin: const EdgeInsets.only(bottom: 10),
|
|
||||||
alignment: Alignment.topLeft,
|
|
||||||
child: const Text('data', style: TextStyle(
|
|
||||||
fontWeight: FontWeight.w500, fontSize: 24)),
|
|
||||||
),
|
|
||||||
const CustomDivider(),
|
|
||||||
TextSwitchContainer(
|
|
||||||
leftText: "export Data",
|
|
||||||
onTap: () => {},
|
|
||||||
),
|
|
||||||
const CustomDivider(),
|
|
||||||
TextSwitchContainer(
|
|
||||||
leftText: "import Data",
|
|
||||||
onTap: () => {},
|
|
||||||
),
|
|
||||||
const CustomDivider(),
|
|
||||||
TextSwitchContainer(
|
|
||||||
leftText: "delete Data",
|
|
||||||
onTap: () => {},
|
|
||||||
),
|
|
||||||
const CustomDivider(),
|
|
||||||
TextSwitchContainer(
|
|
||||||
leftText: "<-",
|
|
||||||
onTap: () => context.go("/settings"),
|
|
||||||
),
|
|
||||||
],
|
|
||||||
),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -87,7 +87,7 @@ Future<void> _launchUrl(Uri url) async {
|
||||||
const CustomDivider(),
|
const CustomDivider(),
|
||||||
TextSwitchContainer(
|
TextSwitchContainer(
|
||||||
leftText: "your data",
|
leftText: "your data",
|
||||||
onTap: () => context.go("/date_page"),
|
onTap: () => {},
|
||||||
),
|
),
|
||||||
// Community section
|
// Community section
|
||||||
Padding(
|
Padding(
|
||||||
|
|
Loading…
Reference in New Issue