mirrored_repositories/Attendize-Scanner-Mobile/lib
import 'dart:math';

import 'package:tiket/Helpers/helper.dart';
import 'package:flutter/material.dart';

import 'package:tiket/Widget/customClipper.dart';

class BezierContainer extends StatelessWidget {
  const BezierContainer({Key key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Container(
      child: Transform.rotate(
        angle: -pi / 3.5,
        child: ClipPath(
        clipper: ClipPainter(),
        child: Container(
          height: MediaQuery.of(context).size.height *.5,
          width: MediaQuery.of(context).size.width,
          decoration: BoxDecoration(
              gradient: LinearGradient(
                begin: Alignment.topCenter,
                end: Alignment.bottomCenter,
                colors: [PRIMARY_COLOR,SECONDARY_COLOR]
              )
            ),
        ),
      ),
      )
    );
  }
}
