cry 0.0.1 copy "cry: ^0.0.1" to clipboard
cry: ^0.0.1 copied to clipboard

outdated

一个Flutter组件库

example/lib/main.dart

import 'package:flutter/material.dart';

import 'demo_button.dart';

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

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Cry Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: MyHomePage(title: 'Cry Demo Home Page'),
    );
  }
}

class MyHomePage extends StatefulWidget {
  MyHomePage({Key key, this.title}) : super(key: key);

  final String title;

  @override
  _MyHomePageState createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(widget.title),
      ),
      body: Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: <Widget>[
            DemoButton(),
          ],
        ),
      ),
    );
  }
}
7
likes
0
points
416
downloads

Publisher

unverified uploader

Weekly Downloads

一个Flutter组件库

Homepage

License

unknown (license)

Dependencies

flutter

More

Packages that depend on cry