fas_ui_flutter 0.1.4 fas_ui_flutter: ^0.1.4 copied to clipboard
A new Flutter project.
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,
),
),
),
);
}
}