flutter_cupertino_date_picker

import 'package:chewie/chewie.dart';
import 'package:flutter/material.dart';
import 'package:video_player/video_player.dart';
import 'package:flutter_cupertino_date_picker/flutter_cupertino_date_picker.dart';
final videoPlayerController = VideoPlayerController.asset("assets/test.mp4");  


final chewieController = ChewieController(
  videoPlayerController: videoPlayerController,
  aspectRatio: 3 / 2,
  autoPlay: true,
  looping: true,
);

final playerWidget = Chewie(
  controller: chewieController,
);


void main(){
  runApp(MyApp());  
}

class MyApp extends StatefulWidget{
  @override
  State<StatefulWidget> createState() {
    // TODO: implement createState
    return StateMyApp();  
  }

}

class StateMyApp extends State<MyApp>{
  @override
  Widget build(BuildContext context) {
    // TODO: implement build
    return new MaterialApp(
      home: Scaffold(
        appBar: AppBar(title: Text("名字"),),
        body: Center(
          child: DatePickerWidget(

            // DateTime minDateTime,
            // DateTime maxDateTime,
            // DateTime initialDateTime,
            // String dateFormat: DATETIME_PICKER_DATE_FORMAT,
            // DateTimePickerLocale locale: DATETIME_PICKER_LOCALE_DEFAULT,
            // DateTimePickerTheme pickerTheme: DatePickerTheme.Default,
            // DateVoidCallback onCancel,
            // DateValueCallback onChange,
            // DateValueCallback onConfirm,
)),
      ),
    );
  }
}
此条目发表在未分类分类目录。将固定链接加入收藏夹。

发表评论

电子邮件地址不会被公开。 必填项已用*标注