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

Lightweight Flutter UI Components built on Vant.

example/lib/main.dart

import 'dart:io';

import 'package:example/pages/button_page.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';

void main() {
  runApp(MyApp());
  if (Platform.isAndroid) {
    SystemUiOverlayStyle systemUiOverlayStyle = SystemUiOverlayStyle(
        statusBarColor: Colors.transparent,
        statusBarBrightness: Brightness.dark,
        systemNavigationBarColor: Colors.black);
    SystemChrome.setSystemUIOverlayStyle(systemUiOverlayStyle);
  }
}

class MyApp extends StatelessWidget {
  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
          primarySwatch: Colors.lightGreen,
          appBarTheme: AppBarTheme(elevation: 0.0, color: Colors.white)),
      home: MyHomePage(title: 'Flutter 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 ButtonPage();
    /*return Scaffold(
      body: Center(
        child: Row(
          mainAxisAlignment: MainAxisAlignment.center,
          crossAxisAlignment: CrossAxisAlignment.center,
          children: <Widget>[
            FantButton(
              text: "大号按钮",
              hairline: true,
              plain: true,
              disabled: false,
              round: false,
              loading: false,
              size: FantButtonSize.small,
              loadingText: "加载中",
              color: Color(0xff7232dd),
              type: FantButtonTypes.primary,
              click: () {},
            )
          ],
        ),
      ),
// This trailing comma makes auto-formatting nicer for build methods.
    );*/
  }
}
0
likes
30
pub points
0%
popularity

Publisher

unverified uploader

Lightweight Flutter UI Components built on Vant.

Repository (GitHub)
View/report issues

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on fant