|
@@ -5,7 +5,8 @@ import 'package:flutter/material.dart';
|
|
|
import 'package:flutter_clock/pages/alarm_page.dart';
|
|
|
import 'package:flutter_clock/pages/clock_page.dart';
|
|
|
import 'package:flutter_clock/pages/stopwatch_page.dart';
|
|
|
-import 'package:flutter_clock/pages/timer_page.dart';
|
|
|
+import 'package:flutter_clock/pages/timer/timer_page.dart';
|
|
|
+
|
|
|
/// Description: main page
|
|
|
/// Time : 04/06/2025 Sunday
|
|
|
/// Author : liuyuqi.gov@msn.cn
|
|
@@ -18,6 +19,7 @@ class IndexPage extends StatefulWidget {
|
|
|
|
|
|
class _IndexPageState extends State<IndexPage>
|
|
|
with SingleTickerProviderStateMixin {
|
|
|
+
|
|
|
late TabController _tabController;
|
|
|
final List<Widget> _tabs = [
|
|
|
Tab(child: Text('Alarm', style: TextStyle(fontSize: 16))),
|
|
@@ -61,14 +63,15 @@ class _IndexPageState extends State<IndexPage>
|
|
|
indicatorColor: Colors.blue,
|
|
|
indicatorWeight: 3,
|
|
|
),
|
|
|
- actions: [
|
|
|
- IconButton(
|
|
|
- icon: Icon(Icons.more_vert, color: Colors.black),
|
|
|
- onPressed: () {
|
|
|
- // More options menu
|
|
|
- },
|
|
|
- ),
|
|
|
- ],
|
|
|
+ // actions: [
|
|
|
+ // IconButton(
|
|
|
+ // icon: Icon(Icons.more_vert, color: Colors.black),
|
|
|
+ // onPressed: () {
|
|
|
+ // // More options menu
|
|
|
+
|
|
|
+ // },
|
|
|
+ // ),
|
|
|
+ // ],
|
|
|
),
|
|
|
body: TabBarView(
|
|
|
controller: _tabController,
|
|
@@ -93,16 +96,3 @@ class _IndexPageState extends State<IndexPage>
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-class InnerFaceClipper extends CustomClipper<Rect> {
|
|
|
- final percent = 0.85;
|
|
|
-
|
|
|
- @override
|
|
|
- Rect getClip(Size size) => Rect.fromCenter(
|
|
|
- center: size.center(Offset(0, 0)),
|
|
|
- width: size.width * percent,
|
|
|
- height: size.height * percent,
|
|
|
- );
|
|
|
-
|
|
|
- @override
|
|
|
- bool shouldReclip(CustomClipper oldClipper) => true;
|
|
|
-}
|