fas_ui_flutter 0.1.4 icon indicating copy to clipboard operation
fas_ui_flutter: ^0.1.4 copied to clipboard

A new Flutter project.

example/lib/main.dart

import 'package:fas_ui_flutter/components/bar/segment_bar.dart';
import 'package:flutter/material.dart';

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

class MyApp extends StatefulWidget {
  @override
  _MyAppState createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  @override
  void initState() {
    super.initState();
  }

  // Platform messages are asynchronous, so we initialize in an async method.

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Plugin example app'),
        ),
        body: Center(
          child: SegmentTextBar.line(
            datas: [
              "tianmu1",
              "tianmu1",
              "tianmu1",
              "tianmu1",
              "tianmu1",
              "tianmu1"
            ],
            defaultIndex: 0,
            itemSpace: 40,
            activeTextColor: Color(0xFF2A2C3B),
            normalTextColor: Color(0xFF9E9E9E),
            fontSize: 16,
          ),
        ),
      ),
    );
  }
}
0
likes
75
pub points
0%
popularity

Publisher

unverified uploader

A new Flutter project.

Homepage

Documentation

API reference

License

Icon for licenses.unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on fas_ui_flutter