xb_scaffold 0.1.3 copy "xb_scaffold: ^0.1.3" to clipboard
xb_scaffold: ^0.1.3 copied to clipboard

基于provider封装的脚手架.

example/lib/main.dart

import 'package:example/home.dart';
import 'package:flutter/material.dart';
import 'package:xb_scaffold/xb_scaffold.dart';

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

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
        useMaterial3: true,
      ),
      navigatorObservers: [xbRouteObserver],
      home: const XBScaffold(imgPrefixs: ["assets/images"], child: Home()),
    );
  }
}
3
likes
0
points
2.11k
downloads

Publisher

unverified uploader

Weekly Downloads

基于provider封装的脚手架.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

cached_network_image, dio, flutter, intl, logger, provider

More

Packages that depend on xb_scaffold