瀏覽代碼

updated

master
Gedion Daniel 1 年之前
父節點
當前提交
50335bad91
共有 25 個檔案被更改,包括 12 行新增202 行删除
  1. +1
    -1
      .flutter-plugins-dependencies
  2. 二進制
      assets/images/HZ2A2318.jpg
  3. 二進制
      assets/images/HZ2A2341.jpg
  4. 二進制
      assets/images/HZ2A2394.jpg
  5. 二進制
      assets/images/HZ2A2453.jpg
  6. 二進制
      assets/images/HZ2A2466.jpg
  7. 二進制
      assets/images/HZ2A2498.jpg
  8. 二進制
      assets/images/HZ2A2564-Modifica.jpg
  9. 二進制
      assets/images/HZ2A2567.jpg
  10. 二進制
      assets/images/HZ2A2588.jpg
  11. 二進制
      assets/images/HZ2A2596.jpg
  12. 二進制
      assets/images/HZ2A2627.jpg
  13. 二進制
      assets/images/HZ2A2636.jpg
  14. 二進制
      assets/images/HZ2A2670.jpg
  15. 二進制
      assets/images/HZ2A2703.jpg
  16. 二進制
      assets/images/img1.jpg
  17. 二進制
      assets/images/img2.jpg
  18. 二進制
      assets/images/img3.jpg
  19. 二進制
      assets/images/lab1.jpg
  20. 二進制
      assets/images/lab11.jpg
  21. 二進制
      assets/images/lab2.jpg
  22. 二進制
      assets/images/lab3.jpg
  23. +2
    -5
      lib/presentation/login_screen/login_screen.dart
  24. +6
    -196
      lib/presentation/splash_screen_one_screen/splash_screen_one_screen.dart
  25. +3
    -0
      pubspec.yaml

+ 1
- 1
.flutter-plugins-dependencies
文件差異過大導致無法顯示
查看文件


二進制
assets/images/HZ2A2318.jpg 查看文件

Before After
Width: 1024  |  Height: 683  |  Size: 116 KiB

二進制
assets/images/HZ2A2341.jpg 查看文件

Before After
Width: 1024  |  Height: 683  |  Size: 92 KiB

二進制
assets/images/HZ2A2394.jpg 查看文件

Before After
Width: 1024  |  Height: 717  |  Size: 85 KiB

二進制
assets/images/HZ2A2453.jpg 查看文件

Before After
Width: 1024  |  Height: 683  |  Size: 85 KiB

二進制
assets/images/HZ2A2466.jpg 查看文件

Before After
Width: 1024  |  Height: 683  |  Size: 102 KiB

二進制
assets/images/HZ2A2498.jpg 查看文件

Before After
Width: 1024  |  Height: 1536  |  Size: 166 KiB

二進制
assets/images/HZ2A2564-Modifica.jpg 查看文件

Before After
Width: 1024  |  Height: 668  |  Size: 107 KiB

二進制
assets/images/HZ2A2567.jpg 查看文件

Before After
Width: 1024  |  Height: 711  |  Size: 106 KiB

二進制
assets/images/HZ2A2588.jpg 查看文件

Before After
Width: 1024  |  Height: 720  |  Size: 101 KiB

二進制
assets/images/HZ2A2596.jpg 查看文件

Before After
Width: 1024  |  Height: 683  |  Size: 113 KiB

二進制
assets/images/HZ2A2627.jpg 查看文件

Before After
Width: 1024  |  Height: 683  |  Size: 100 KiB

二進制
assets/images/HZ2A2636.jpg 查看文件

Before After
Width: 1024  |  Height: 1536  |  Size: 170 KiB

二進制
assets/images/HZ2A2670.jpg 查看文件

Before After
Width: 1024  |  Height: 703  |  Size: 100 KiB

二進制
assets/images/HZ2A2703.jpg 查看文件

Before After
Width: 1024  |  Height: 1536  |  Size: 217 KiB

二進制
assets/images/img1.jpg 查看文件

Before After
Width: 3024  |  Height: 4032  |  Size: 2.9 MiB

二進制
assets/images/img2.jpg 查看文件

Before After
Width: 4032  |  Height: 3024  |  Size: 3.1 MiB

二進制
assets/images/img3.jpg 查看文件

Before After
Width: 3024  |  Height: 4032  |  Size: 3.4 MiB

二進制
assets/images/lab1.jpg 查看文件

Before After
Width: 854  |  Height: 720  |  Size: 93 KiB

二進制
assets/images/lab11.jpg 查看文件

Before After
Width: 1024  |  Height: 683  |  Size: 130 KiB

二進制
assets/images/lab2.jpg 查看文件

Before After
Width: 1024  |  Height: 683  |  Size: 92 KiB

二進制
assets/images/lab3.jpg 查看文件

Before After
Width: 1024  |  Height: 685  |  Size: 106 KiB

+ 2
- 5
lib/presentation/login_screen/login_screen.dart 查看文件

@@ -148,7 +148,7 @@ class _LoginScreenState extends State<LoginScreen> {
),
if (!isRecording || showStartRecordingButton)
CustomButton(
text: "inizia a registrare",
text: "Inizia a Registrare",
margin: EdgeInsets.fromLTRB(50, 30, 50, 10),
variant: ButtonVariant.OutlineBlack9003f,
padding: ButtonPadding.PaddingAll9,
@@ -311,10 +311,7 @@ class _LoginScreenState extends State<LoginScreen> {

Future<String> loginAndGetToken() async {
var url = Uri.parse('https://192.168.60.230:5050/auth/login');
var data = {
'username': dotenv.env['USERNAME'],
'password': dotenv.env['PASSWORD'],
};
var data = {'username': 'admin', 'password': 'Pwdadmin1!'};

var body = data.keys.map((key) => "${Uri.encodeComponent(key)}=${Uri.encodeComponent(data[key] ?? '')}").join("&");



+ 6
- 196
lib/presentation/splash_screen_one_screen/splash_screen_one_screen.dart 查看文件

@@ -4,201 +4,11 @@ import 'package:michele_s_application8/core/app_export.dart';
import 'dart:async';
import 'package:dots_indicator/dots_indicator.dart';


//
// class SplashScreenOneScreen extends GetWidget<SplashScreenOneController> {
// @override
// // Widget build(BuildContext context) {
// // return SafeArea(
// // child: Scaffold(
// // backgroundColor: ColorConstant.whiteA700,
// // body: Container(
// // width: double.maxFinite,
// // padding: getPadding(all: 14),
// // child: Column(
// // crossAxisAlignment: CrossAxisAlignment.end,
// // mainAxisAlignment: MainAxisAlignment.start,
// // children: [
// // Padding(
// // padding: getPadding(right: 6),
// // child: Text("lbl_powered_by".tr,
// // overflow: TextOverflow.ellipsis,
// // textAlign: TextAlign.left,
// // style: AppStyle.txtRobotoRomanMedium10)),
// // CustomImageView(
// // imagePath: ImageConstant.imgImage1,
// // height: getVerticalSize(21),
// // width: getHorizontalSize(103),
// // margin: getMargin(right: 6)),
// // Spacer(),
// // Container(
// // height: getVerticalSize(352),
// // width: getHorizontalSize(345),
// // margin: getMargin(right: 1, bottom: 215),
// // child: Stack(alignment: Alignment.center, children: [
// // Align(
// // alignment: Alignment.center,
// // child: Container(
// // height: getVerticalSize(352),
// // width: getHorizontalSize(345),
// // decoration: BoxDecoration(
// // color: ColorConstant.whiteA7009e,
// // borderRadius: BorderRadius.circular(
// // getHorizontalSize(176))))),
// // Align(
// // alignment: Alignment.center,
// // child: Row(
// // mainAxisAlignment: MainAxisAlignment.center,
// // children: [
// // CustomImageView(
// // imagePath:
// // ImageConstant.imgRectangle286,
// // height: getVerticalSize(133),
// // width: getHorizontalSize(134)),
// // Padding(
// // padding: getPadding(
// // left: 6, top: 148, bottom: 20),
// // child: Column(
// // crossAxisAlignment:
// // CrossAxisAlignment.end,
// // mainAxisAlignment:
// // MainAxisAlignment.start,
// // children: [
// // Container(
// // width:
// // getHorizontalSize(113),
// // child: Text(
// // "msg_istituto_comprensivo"
// // .tr,
// // maxLines: null,
// // textAlign:
// // TextAlign.right,
// // style: AppStyle
// // .txtRobotoRomanSemiBold19)),
// // Padding(
// // padding: getPadding(top: 6),
// // child: Text(
// // "lbl_dante_alighieri"
// // .tr,
// // overflow: TextOverflow
// // .ellipsis,
// // textAlign:
// // TextAlign.left,
// // style: AppStyle
// // .txtRobotoRomanSemiBold19Lime600))
// // ]))
// // ]))
// // ]))
// // ]))));
// // }
// }

class SplashScreenOneScreen extends StatefulWidget {
@override
_SplashScreenOneScreenState createState() => _SplashScreenOneScreenState();
}


// class _SplashScreenOneScreenState extends State<SplashScreenOneScreen> with AutomaticKeepAliveClientMixin {
// final controller = PageController();
// Timer? _timer;
// double currentPage = 0;
//
// @override
// void initState() {
// super.initState();
// _timer = Timer.periodic(Duration(seconds: 5), (Timer timer) {
// if (controller.page?.round() == controller.page) {
// if (controller.page == 2) {
// controller.jumpToPage(0);
// } else {
// controller.nextPage(
// duration: Duration(milliseconds: 2000),
// curve: Curves.ease,
// );
// }
// }
// });
// controller.addListener(() {
// setState(() {
// currentPage = controller.page!;
// });
// });
// }
//
// @override
// void dispose() {
// _timer?.cancel();
// super.dispose();
// }
//
// @override
// Widget build(BuildContext context) {
// return Scaffold(
// body: Stack(
// children: [
// PageView.builder(
// controller: controller,
// itemCount: 3,
// itemBuilder: (context, index) {
// return GestureDetector(
// onTap: () {
// Navigator.pushNamed(context, '/login_screen');
// },
// child: Stack(
// fit: StackFit.expand,
// children: [
// Image.asset(
// 'assets/images/img${index + 1}.png',
// fit: BoxFit.cover,
// ),
// Positioned(
// bottom: 300,
// left: 20,
// child: Text(
// 'CookingLab',
// style: TextStyle(
// color: Colors.white,
// fontSize: 24,
// fontWeight: FontWeight.bold,
// shadows: <Shadow>[
// Shadow(
// offset: Offset(2.0, 2.0),
// blurRadius: 3.0,
// color: Color.fromARGB(255, 0, 0, 0),
// ),
// ],
// ),
// ),
// ),
// ],
// ),
// );
// },
// ),
// Positioned(
// bottom: 20,
// left: 0,
// right: 0,
// child: Center(
// child: DotsIndicator(
// dotsCount: 3,
// position: currentPage,
// decorator: DotsDecorator(
// activeColor: Colors.white,
// ),
// ),
// ),
// ),
// ],
// ),
// );
// }
//
// @override
// bool get wantKeepAlive => true;
// }

class _SplashScreenOneScreenState extends State<SplashScreenOneScreen> with AutomaticKeepAliveClientMixin {
final controller = PageController();
Timer? _timer;
@@ -206,16 +16,16 @@ class _SplashScreenOneScreenState extends State<SplashScreenOneScreen> with Auto

// Add your image paths here
final List<String> imagePaths = [
'assets/images/foto-CookingLab.jpeg',
'assets/images/img2.png',
'assets/images/img3.png',
'assets/images/lab1.jpg',
'assets/images/lab2.jpg',
'assets/images/lab3.jpg',
];

// Add your text here
final List<String> imageTexts = [
'HELLO',
'Text 1',
'CookingLab',
'Text 3',
'Text 2',
];

@override
@@ -311,4 +121,4 @@ class _SplashScreenOneScreenState extends State<SplashScreenOneScreen> with Auto

@override
bool get wantKeepAlive => true;
}
}

+ 3
- 0
pubspec.yaml 查看文件

@@ -32,6 +32,9 @@ flutter:
- assets/images/img3.png
- assets/images/img_image1.png
- assets/images/foto-CookingLab.jpeg
- assets/images/lab1.jpg
- assets/images/lab2.jpg
- assets/images/lab3.jpg
fonts:
- family: Roboto
fonts:


Loading…
取消
儲存