mirrored_repositories/smart_cyrptocurrency_clock/crypto_currency_app/lib/feature
import 'package:flutter/material.dart';

import '../alarm/view/alarm_view.dart';
import '../coins/view/coins_view.dart';

class AppTabView extends StatefulWidget {
  @override
  _AppTabViewState createState() => _AppTabViewState();
}

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

  @override
  Widget build(BuildContext context) {
    return DefaultTabController(
      length: 2,
      child: Scaffold(
        bottomNavigationBar: BottomAppBar(
          child: TabBar(
            labelPadding: EdgeInsets.zero,
            indicatorPadding: EdgeInsets.zero,
            tabs: [
              Tab(
                icon: Icon(Icons.money_off, color: Colors.black),
              ),
              Tab(
                icon: Icon(Icons.alarm, color: Colors.black),
              ),
            ],
          ),
        ),
        body: TabBarView(
          children: [
            CoinsView(),
            AlarmView(),
          ],
        ),
      ),
    );
  }
}
