FLUTTER ECOSYSTEM

flyingV805/AnimatedStarsFlutter

适用于 Flutter 的 AnimatedStarsView

AnimatedStarsFlutter 项目封面
Stars
2
Forks
1
最近推送(UTC)
2022年9月26日
项目状态
未归档
Vladislav Petrov GitHub avatar
GITHUB User

Vladislav Petrov ↗

Android/Flutter developer

语言DartHTMLSwiftKotlinObjective-C

此仓库发布的插件

使用的依赖

依赖清单 5 项
  • flutter{"sdk":"flutter"}
  • flutter_web_plugins{"sdk":"flutter"}
  • plugin_platform_interface^2.0.2
  • flutter_test开发依赖{"sdk":"flutter"}
  • flutter_lints开发依赖^2.0.0

原始 README

以下为英文项目原文快照,最新内容请访问 GitHub。

展开 / 收起项目 README

AnimatedStarsView

starsview

AnimatedStarsView for Flutter

Alt Text

Pure Dart implementation of AnimatedStarsView

Getting Started

Step 1

Add library to your pubspec.yaml

dependencies:
  starsview: '^0.0.2'
Step 2

Add StarsView to your widget tree

@override  
Widget build(BuildContext context) {  
  return MaterialApp(  
    home: Scaffold(  
      body: SafeArea(  
	child: Stack(  
	  children: <Widget>[  
	    Container(  
	      decoration: const BoxDecoration(  
	        gradient: LinearGradient(  
		  begin: Alignment.topRight,  
		  end: Alignment.bottomLeft,  
		  colors: <Color>[  
		    Colors.red,  
		    Colors.blue,  
		  ],  
		)  
	      )  
	    ),  
	    StarsView(  
	      fps: 60,  
	    )  
	  ],  
	),  
      ),  
    ),  
  );  
}