FLUTTER ECOSYSTEM

mkiisoft/hover_effect

호버 - 기울기 3D 효과 자식 위젯을 아무것도 가져오고 위젯에 호버/기울기 3D 기능을 활성화합니다.

호버 효과 프로젝트 이미지
Stars
16
Forks
4
최근 푸시(UTC)
2021. 12. 8.
프로젝트 상태
활성
Mariano Zorrilla GitHub avatar
GITHUB User

Mariano Zorrilla ↗

Android, Flutter & Dart - Tech Lead @ PayPal

PayPalBuenos Aires, Argentina공식 웹사이트 ↗
언어DartSwiftHTMLKotlinObjective-C

이 저장소가 배포한 패키지

사용 중인 의존성

의존성 목록 2 개
  • flutter{"sdk":"flutter"}
  • flutter_test개발 의존성{"sdk":"flutter"}

원본 README

아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.

README 펼치기 / 접기

hover_effect

Hover - Tilt 3D Effect

Takes any child widget and enables Hover/Tilt 3D functionality to it

Demo

https://raw.githubusercontent.com/mkiisoft/hover_effect/master/assets/demo.gif

Getting Started

import 'package:flutter/material.dart';
import 'package:hover_effect/hover_effect.dart';

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

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Hover - Tilt 3D Effect',
      theme: ThemeData(
        primarySwatch: Colors.blue,
        visualDensity: VisualDensity.adaptivePlatformDensity,
      ),
      home: Material(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: [
            Text(
              'Hover - Tilt 3D Effect',
              style: TextStyle(
                  fontSize: 30,
                  fontWeight: FontWeight.w700,
                  color: Colors.black,
                  letterSpacing: 2),
            ),
            SizedBox(height: 50),
            Container(
              width: 150,
              height: 300,
              child: HoverCard(
                builder: (context, hovering) {
                  return Container(
                    color: Color(0xFFE9E9E9),
                    child: Center(
                      child: FlutterLogo(size: 100),
                    ),
                  );
                },
                depth: 10,
                depthColor: Colors.grey[500],
                onTap: () => print('Hello, World!'),
                shadow: BoxShadow(color: Colors.purple[200], blurRadius: 30, spreadRadius: -20, offset: Offset(0, 40)),
              ),
            ),
          ],
        ),
      ),
    );
  }
}