mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-28 09:47:35 +08:00
Use deprecated FlatButton.icon
The newer TextButton.icon uses some of the new styles which I cannot seem to figure out exactly, so for this release lets just use the old button.
This commit is contained in:
21
lib/app.dart
21
lib/app.dart
@ -294,6 +294,25 @@ class _JournalAppState extends State<JournalApp> {
|
|||||||
var appSettings = Provider.of<AppSettings>(context);
|
var appSettings = Provider.of<AppSettings>(context);
|
||||||
var router = AppRouter(settings: settings, appSettings: appSettings);
|
var router = AppRouter(settings: settings, appSettings: appSettings);
|
||||||
|
|
||||||
|
/*
|
||||||
|
const FlexSchemeData customFlexScheme = FlexSchemeData(
|
||||||
|
name: 'Toledo purple',
|
||||||
|
description: 'Purple theme created from custom defined colors.',
|
||||||
|
light: FlexSchemeColor(
|
||||||
|
primary: Color(0xFF66bb6a),
|
||||||
|
primaryVariant: Color(0xFF338a3e),
|
||||||
|
secondary: Color(0xff6d4c41),
|
||||||
|
secondaryVariant: Color(0xFF338a3e),
|
||||||
|
),
|
||||||
|
dark: FlexSchemeColor(
|
||||||
|
primary: Color(0xff212121),
|
||||||
|
primaryVariant: Color(0xffc8635f),
|
||||||
|
secondary: Color(0xff689f38),
|
||||||
|
secondaryVariant: Color(0xff00be00),
|
||||||
|
),
|
||||||
|
);
|
||||||
|
*/
|
||||||
|
|
||||||
return MaterialApp(
|
return MaterialApp(
|
||||||
key: const ValueKey("App"),
|
key: const ValueKey("App"),
|
||||||
navigatorKey: _navigatorKey,
|
navigatorKey: _navigatorKey,
|
||||||
@ -303,7 +322,7 @@ class _JournalAppState extends State<JournalApp> {
|
|||||||
supportedLocales: EasyLocalization.of(context).supportedLocales,
|
supportedLocales: EasyLocalization.of(context).supportedLocales,
|
||||||
locale: EasyLocalization.of(context).locale,
|
locale: EasyLocalization.of(context).locale,
|
||||||
|
|
||||||
theme: FlexColorScheme.light(scheme: FlexScheme.green).toTheme,
|
theme: Themes.light,
|
||||||
darkTheme: Themes.dark,
|
darkTheme: Themes.dark,
|
||||||
themeMode: settings.theme.toThemeMode(),
|
themeMode: settings.theme.toThemeMode(),
|
||||||
|
|
||||||
|
@ -97,7 +97,7 @@ class EditorBottomBar extends StatelessWidget {
|
|||||||
icon: const Icon(Icons.undo),
|
icon: const Icon(Icons.undo),
|
||||||
onPressed: undoAllowed ? onUndoSelected : null,
|
onPressed: undoAllowed ? onUndoSelected : null,
|
||||||
),
|
),
|
||||||
TextButton.icon(
|
FlatButton.icon(
|
||||||
icon: const Icon(Icons.folder),
|
icon: const Icon(Icons.folder),
|
||||||
label: Text(parentFolder.publicName),
|
label: Text(parentFolder.publicName),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
|
Reference in New Issue
Block a user