Dark Light Theme
Step 1
We cannot directly remove the time stamp from Dark Light Theme but using the intl.dart package we can easily filter the date stamp from time stamp. So open your flutter project’s pubspec.yaml in code .
dependencies: flutter: sdk: flutter dynamic_theme: 1.0.1
flutter pub get
import 'package:dynamic_theme/dynamic_theme.dart'; import 'package:dynamic_theme/theme_switcher_widgets.dart'; import 'package:flutter/material.dart'; void main() => runApp(MyApp()); class MyApp extends StatelessWidget { @override Widget build(BuildContext context) { return DynamicTheme( defaultBrightness: Brightness.light, data: (brightness) => ThemeData( primarySwatch: Colors.orange, brightness: brightness, ), themedWidgetBuilder: (context, theme) { return MaterialApp( debugShowCheckedModeBanner: false, title: 'Flutter Demo', theme: theme, home: MyHomePage(title: 'Home'), ); }); } } class MyHomePage extends StatefulWidget { MyHomePage({Key key, this.title}) : super(key: key); final String title; @override _MyHomePageState createState() => _MyHomePageState(); } class _MyHomePageState extends State<MyHomePage> { @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar( backgroundColor: Colors.pink, title: Text("Theme"), ), body: Center( child: Column( mainAxisAlignment: MainAxisAlignment.center, children: <Widget>[ FlatButton( onPressed: changeBrightness, color: Colors.pink, child: const Icon(Icons.brightness_2), ), ], ), ), ); } void changeBrightness() { DynamicTheme.of(context).setBrightness( Theme.of(context).brightness == Brightness.dark ? Brightness.light : Brightness.dark); } }