import 'package:flutter/material.dart'; import 'package:sk_base_mobile/screens/sale_quotation/components/data_table.dart'; import 'package:sk_base_mobile/widgets/sk_appbar.dart'; class SaleQuotationPage extends StatelessWidget { const SaleQuotationPage({super.key}); @override Widget build(BuildContext context) { return Scaffold( appBar: const SkAppbar(title: '报价计算'), body: buildBody(), ); } Widget buildBody() { return DataTable2FixedNMDemo(); // return SingleChildScrollView( // child: Column( // children: [Text('11')], // ), // ); // return SliverStickyHeader.builder( // builder: (context, state) => Container( // height: 60.0, // color: (state.isPinned ? Colors.pink : Colors.lightBlue) // .withOpacity(1.0 - state.scrollPercentage), // padding: EdgeInsets.symmetric(horizontal: 16.0), // alignment: Alignment.centerLeft, // child: Text( // 'Header #1', // style: const TextStyle(color: Colors.white), // ), // ), // sliver: SliverList( // delegate: SliverChildBuilderDelegate( // (context, i) => ListTile( // leading: CircleAvatar( // child: Text('0'), // ), // title: Text('List tile #$i'), // ), // childCount: 4, // ), // ), // ); } }